projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

react 17 and 6.7.0 version install package. #937

Closed prakashsvmx closed 2 years ago

prakashsvmx commented 2 years ago

trying the following example (same code without the helpers import) inside my project: http://projectstorm.cloud/react-diagrams/?path=/story/simple-usage--links-with-labels

"react": "^17.0.2", "@projectstorm/react-diagrams": "^6.7.0",

yarn add @projectstorm/react-diagrams

the following error is thrown .

Module not found: Error: Can't resolve 'pathfinding' in '/home/test-rd-project/node_modules/@projectstorm/react-diagrams-routing/dist/engine'

ycang89 commented 2 years ago

check this https://projectstorm.gitbook.io/react-diagrams/getting-started#install-the-peer-dependencies