Support React 17.xSee original GitHub issue
Hey! Thanks for such a cool library!
react-carousel supports up to version
16.8.0 of react. It would be awesome if it would support
- Created 2 years ago
Top GitHub Comments
If your project uses React 17, an
npm install will fail and only succeed with the
--legacy-peer-deps flag as follows:
npm ERR! Found: email@example.com npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0" from @firstname.lastname@example.org npm ERR! node_modules/@brainhubeu/react-carousel npm ERR! @brainhubeu/react-carousel@"^2.0.4" from the root project
Luckily it works out of the box in React 17. Just annoying that you have to use this dangerous flag for installing it.