-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
ReferenceError: document is not defined at getContainer #150
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
It seems that the issue is that Next.js tries to server-side render the component. And, when server-side-rendering there is no The best solution would be to try to allow the component to be server-side rendered too, that is - not depend on I have found a workaround though. In Next.js you can turn off server-side rendering for given components, so I did this:
This will make sure that the The second issue with the css import is solved by moving the CSS import to the |
Thank you very much for your answer, I'm not familiar with Next.js, so i think this is a good pratice
About this issue, i will add duplicate |
Version
4.1.17
Description
Error when trying to use the component in a next.js application.
Steps
Simplified code from the live version
When trying to instantiate the component it fails with error in console.
Reproduce Link
Steps to Reproduce
Expected Behavior
A rendered player.
Current Behavior
Error in console.
System information
Windows 10
Comments
The text was updated successfully, but these errors were encountered: