Comments (11)
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 protected]
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/[email protected]
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.
from react-carousel.
May I ask what issues you ran into?
from react-carousel.
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 protected] 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/[email protected] 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.
I'm facing the same problem :(
from react-carousel.
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 protected] 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/[email protected] 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.
Good to know! It would be better for the peace of mind to install it without the dangerous flag though
from react-carousel.
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 protected] 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/[email protected] 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.
Same issue here... Please update the dependency configuration.
from react-carousel.
Would be great if react 17 is supported. please update the dependencies.
from react-carousel.
Please support react 17.x
from react-carousel.
Please support react 17.x
yes, please do
from react-carousel.
please
from react-carousel.
https://gitmemories.com/sag1v/react-elastic-carousel/issues/235
from react-carousel.
Here's the patch for React 17-18
https://www.npmjs.com/package/@itseasy21/react-elastic-carousel
and update your imports.
from react-carousel.
Related Issues (20)
- Cannot update a component while rendering a different component. Probably due to bad setState() HOT 7
- White stace
- Warning: Cannot update a component (`re`) while rendering a different component (`wi`). To locate the bad setState() call inside `wi`, follow the stack trace as described in
- Warning: Cannot update a component (`re`) while rendering a different component (`wi`). To locate the bad setState() call inside `wi`, follow the stack trace as described in HOT 16
- Custom Arrow Plugin Setting Right Arrow Class Incorrectly HOT 3
- Why there is no working carousel for React? HOT 6
- Garbage with no support? HOT 1
- Autoplay without Infinite appears to have unexpected behavior
- Every single aspect of this carousel is buggy HOT 4
- Link to pages like href=""?
- cannot add breakpoint porps HOT 2
- "infinite plugin doesn't work" HOT 1
- Carousel fails when we use the itemWidth setting along with the infinite setting. HOT 2
- Module parse failed: Unexpected token on react-carousel.js HOT 1
- Gatsby Build - SSR failed HOT 4
- RTL Plugin Infinite doesn't work
- Project still maintained? HOT 1
- Facing an issue "ReferenceError: window is not defined"
- Remove renovate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-carousel.