react-org-chart icon indicating copy to clipboard operation
react-org-chart copied to clipboard

Examples not running

Open mukhammadjon-s opened this issue 3 years ago • 1 comments

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.

mukhammadjon-s avatar Jul 20 '22 06:07 mukhammadjon-s

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

Yoshihisa-Matsumoto avatar Sep 15 '22 03:09 Yoshihisa-Matsumoto