react-elastic-carousel
react-elastic-carousel copied to clipboard
Support with react 18
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
This doesn't work with react 18. peer react@"15 - 17"
+1 This
Same problem: react-elastic-carousel is not compatible with react 18. It works totally fine with --force. But this is no permanent solution.
`npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^18.1.0" from the root project npm ERR! peer react@">=16.8.0" from @restart/[email protected] npm ERR! node_modules/@restart/hooks npm ERR! @restart/hooks@"^0.4.0" from @restart/[email protected] npm ERR! node_modules/@restart/ui npm ERR! @restart/ui@"^1.2.0" from [email protected] npm ERR! node_modules/react-bootstrap npm ERR! react-bootstrap@"^2.3.0" from the root project npm ERR! @restart/hooks@"^0.4.6" from [email protected] npm ERR! node_modules/react-bootstrap npm ERR! react-bootstrap@"^2.3.0" from the root project npm ERR! 12 more (@restart/ui, @testing-library/react, prop-types-extra, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"15 - 17" from [email protected] npm ERR! node_modules/react-elastic-carousel npm ERR! react-elastic-carousel@"^0.11.5" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/react npm ERR! peer react@"15 - 17" from [email protected] npm ERR! node_modules/react-elastic-carousel npm ERR! react-elastic-carousel@"^0.11.5" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\stefa\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\stefa\AppData\Local\npm-cache_logs\2022-06-04T12_47_18_563Z-debug-0.log`
+1 This
+1
+1
I've forked a version of this and added TS/React 18 support: https://www.npmjs.com/package/@itseasy21/react-elastic-carousel Hopefully, this helps :-)
@itseasy21 Thanks for the update
@itseasy21 Thanks my brother! You save my job ;) 🤩
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@itseasy21 thx a lot dude !