-
Notifications
You must be signed in to change notification settings - Fork 35
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
Reference Error: document is not defined #45
Comments
This error is related to emotion-js/emotion#2801 and will happen in SSR only. |
Tried to render unconditionally on the server by checking if I had to install There has to be a better way. |
Place the
|
Describe the bug
I'm trying to render a binary tree using
react-organizational-chart
but I keep getting aReference Error: document is not defined
.To Reproduce
I have a
BinaryTree
component which I'm rendering in anetwork
pageExpected behavior
I expected to get a simple binary tree with 6 child nodes.
Screenshots
Here's a screenshot of the error logs from my build step:
Browser (please complete the following information):
Additional context
I'm only getting this error when using NextJs.
I'm using
The text was updated successfully, but these errors were encountered: