Skip to content
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

document is not defined #40

Closed
pou4a opened this issue Sep 11, 2022 · 1 comment
Closed

document is not defined #40

pou4a opened this issue Sep 11, 2022 · 1 comment
Assignees

Comments

@pou4a
Copy link

pou4a commented Sep 11, 2022

I trying to use react organizational chart but I keep getting this error:

ReferenceError: document is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
r.key
file:///Users/pouya/Documents/Sites/automation_majma_new/node_modules/react-organizational-chart/dist/index.js (1:17845)

file:///Users/pouya/Documents/Sites/automation_majma_new/node_modules/react-organizational-chart/dist/index.js (1:19892)
Object.
file:///Users/pouya/Documents/Sites/automation_majma_new/node_modules/react-organizational-chart/dist/index.js (1:20947)
Module._compile
node:internal/modules/cjs/loader (1099:14)
Object.Module._extensions..js
node:internal/modules/cjs/loader (1153:10)
Module.load
node:internal/modules/cjs/loader (975:32)
Function.Module._load
node:internal/modules/cjs/loader (822:12)
Module.require
node:internal/modules/cjs/loader (999:19)
require
node:internal/modules/cjs/helpers (102:18)
Object.react-organizational-chart
file:///Users/pouya/Documents/Sites/automation_majma_new/.next/server/pages/organizationalChart.js (461:18)

what is the problem guys?

@daniel-hauser
Copy link
Owner

daniel-hauser commented Sep 15, 2022

Looks like you are using Next.js with SSR, if that's the case it might be related to emotion-js/emotion#2801

@daniel-hauser daniel-hauser closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants