-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window is not defined in SSR #124
Comments
having same issue in Gatsby app |
Hey!
and render it
|
This works, but how do I import the the renderer as well? for example this what we import |
While using react-doc-viewer in frameworks with SSR like Next.js or Gatsby there is an error in the line while the build phase
window.requestAnimationFrame(resolve);
ReferenceError: window is not defined
Error occurs in
node_modules/pdfjs-dist/lib/web/ui_utils.js:564:3
version: 0.1.5
Can someone help in this?
The text was updated successfully, but these errors were encountered: