tajo / react-range

🎚️Range input with a slider. Accessible. Bring your own styles and markup.
https://react-range.pages.dev
MIT License
847 stars 97 forks source link

react-range@1.9.1 cannot get along with react v17.x.x and it should be marked as a breaking change #196

Closed Imanghvs closed 1 month ago

Imanghvs commented 1 month ago

I updated to react-range@1.9.1 and now I cannot build my project due to this error:

npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.0.0-0 || ^19.0.0-0" from react-range@1.9.1
npm ERR! node_modules/react-range
npm ERR!   react-range@"^1.8.7" from the root project

I think it's a breaking change. And also I don't suggest to make this change in a patch.

tajo commented 1 month ago

fixed in react-range@1.9.2