frontend-collective / react-sortable-tree

Drag-and-drop sortable component for nested data and hierarchies
https://frontend-collective.github.io/react-sortable-tree/
MIT License
4.9k stars 897 forks source link

Could not resolve dependency: React 18 with react-sortable-tree@2.8.0 #944

Open govindsoni93 opened 8 months ago

govindsoni93 commented 8 months ago

npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.3.0" from react-sortable-tree@2.8.0 npm ERR! node_modules/react-sortable-tree npm ERR! react-sortable-tree@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR!

matin-mortazavi commented 6 months ago

could you find any solution ?! same problem i wanna use it in react 18 and i can

gaeundev commented 3 months ago
npm i --legacy-peer-deps react-sortable-tree

or

npm i --force react-sortable-tree

Can't I do this?