question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support React 17.x

See original GitHub issue

Hey! Thanks for such a cool library!

Currently, react-carousel supports up to version 16.8.0 of react. It would be awesome if it would support 17.x!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:13
  • Comments:10

github_iconTop GitHub Comments

7reactions
m99codercommented, Sep 17, 2021

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: react@17.0.2
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 @brainhubeu/react-carousel@2.0.4
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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React v17.0 – React Blog
We landed the support for React 17 in React Native 0.64. As always, you can track the release discussions on the React Native...
Read more >
How to set React version to react@17 when i use npx create ...
I create a cra templte, but it does not work with react@18 yet, how to set the defautl react version to react@17?
Read more >
React | endoflife.date
React is an open-source JavaScript web framework for building modern web applications. Release, Released, Active Support, Security Support, Latest. 18.2, 6 ...
Read more >
Upgrading to React 17 - Medium
We finally upgraded our app to React v17 from v16. ... This includes React components and Hooks that are only used by legacy...
Read more >
react@17.0.2 - npm
Start using react in your project by running `npm i react`. There are 97688 other projects in the npm registry using react.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found