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

Can't resolve d3 package #18

Open
L-van-der-merwe opened this issue Aug 11, 2020 · 1 comment
Open

Can't resolve d3 package #18

L-van-der-merwe opened this issue Aug 11, 2020 · 1 comment

Comments

@L-van-der-merwe
Copy link

Hi,

I added the package to my project and it resolved into this issue.

ERROR in ./node_modules/@unicef/react-org-chart/dist/index.js
Module not found: Error: Can't resolve 'd3' in '\web\node_modules@unicef\react-org-chart\dist'
@ ./node_modules/@unicef/react-org-chart/dist/index.js 7:94-107
@ ./src/features/membership/ui/views/HierarchyView.jsx
@ ./src/features/membership/ui/views/index.js
@ ./src/features/membership/ui/MembershipPage.jsx
@ ./src/features/membership/ui/index.js
@ ./src/features/membership/index.js
@ ./src/features/index.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:5000 (webpack)/hot/dev-server.js ./node_modules/@neutrinojs/react/node_modules/react-hot-loader/patch.js ./src/index

Any solution in fixing this issue so that I can make use of this awesome component?

@itsnotme01
Copy link

itsnotme01 commented Aug 17, 2020

Hello @LeanSaucecode,
For fixing this issue I installed d3 in my project root folder.

Edit:
You need to install the 3.5.17 version of d3 for avoiding issues:
#13

Edit 2:
If you don't have any error and nothing is displayed try this:
#17 (comment)

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