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

Examples not running #27

Open
mukhammadjon-s opened this issue Jul 20, 2022 · 1 comment
Open

Examples not running #27

mukhammadjon-s opened this issue Jul 20, 2022 · 1 comment

Comments

@mukhammadjon-s
Copy link

mukhammadjon-s commented Jul 20, 2022

I have cloned project and trying to run example demo. But it is showing error like Module not found: Can't resolve '@unicef/react-org-chart' in 'C:\Users\Mukhammadjon_Sirojid\Desktop\PROJECT\Givver\react-org-chart\examples\src'.
I have found in examples/src/package.json syntax @unicef/react-org-chart": "file:...``` under dependencies. Is this syntax possible ? How can I get project up and running.

@Yoshihisa-Matsumoto
Copy link

I tried and faced same error.
On my side, I solved either of the followings.

  1. build parent project on parent folder through npm install -> npm run build
  2. on example folder, run npm start

Or

  1. you can change package.json on example folder to remove @unicef/react-org-chart": "file:..."
  2. npm i @unicef/react-org-chart
  3. npm start

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