daniel-hauser / react-organizational-chart

Simple react hierarchy tree - any React children accepted for nodes
https://daniel-hauser.github.io/react-organizational-chart
MIT License
182 stars 36 forks source link

❌ node_modules\react-organizational-chart\dist\index.js (1:18068) @ r.key #61

Open PedroReyes opened 1 year ago

PedroReyes commented 1 year ago

Describe the bug

I get in the console the next error:

- error node_modules\react-organizational-chart\dist\index.js (1:18068) @ r.key
- error ReferenceError: document is not defined

To Reproduce I simply install the package with npm i react-organizational-chart. Copy paste the example and getting the error 🤷‍♂️

I am using "react-organizational-chart": "2.2.1",

Thanks in advanced. Pedro Reyes.

PedroReyes commented 1 year ago

It seems the conversation about this same topic is already running on this thread:

https://github.com/daniel-hauser/react-organizational-chart/issues/45

Shall we close this one?