clauderic / react-sortable-hoc

A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
https://clauderic.github.io/react-sortable-hoc/
MIT License
10.77k stars 978 forks source link

Not supporting in react@18.0.0 #838

Open kalichaudhary opened 2 years ago

kalichaudhary commented 2 years ago

npm install react-sortable-hoc --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: pathway-gamification-admin@0.1.0 npm ERR! Found: react@18.0.0 npm ERR! node_modules/react npm ERR! react@"^18.0.0" from the root project

npm ERR! A complete log of this run can be found in:

mehimanshupatil commented 2 years ago

Read Readme.md which will answer your question

kalichaudhary commented 2 years ago

Read Readme.md which will answer your question

but change my node version from new to old and now worked.

yagiz-aydin commented 2 years ago

How to handle on react 18 please provide an alternative for this. I read the readme but I didn't understand the logic ?

mehimanshupatil commented 2 years ago

use @dnd-kit. this library uses the findDOMNode method which is deprecated in StrictMode in React 18.

patrykboch commented 2 years ago

Any updates on that? It's high time peerDependency was updated.

PrajwalKarki1 commented 1 year ago

npm install react-sortable-hoc --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: pathway-gamification-admin@0.1.0 npm ERR! Found: react@18.0.0 npm ERR! node_modules/react npm ERR! react@"^18.0.0" from the root project

npm ERR! A complete log of this run can be found in:

use npm -f install react-sortable-hoc --save