react-spring-carousel icon indicating copy to clipboard operation
react-spring-carousel copied to clipboard

Conflicting peer dependencies with React 18 on `npm install`

Open PGrad opened this issue 2 years ago • 2 comments

Thank you for developing this package, I really like the idea of a headless UI carousel and I'm trying to get it to work in my project.

When I attempt to install this package npm install react-spring-carousel with React 18, I see these errors:

npm WARN ERESOLVE overriding peer dependency
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0

and when I do a fresh npm install of my repo I see these errors:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   react@"^18.2.0" from the root project
npm WARN   47 more (@auth0/auth0-react, @emotion/react, @emotion/styled, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.0.0" from [email protected]
npm WARN node_modules/react-zdog/node_modules/react-reconciler
npm WARN   react-reconciler@"^0.20.4" from [email protected]
npm WARN   node_modules/react-zdog
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.0.0" from [email protected]
npm WARN   node_modules/react-zdog/node_modules/react-reconciler
npm WARN     react-reconciler@"^0.20.4" from [email protected]
npm WARN     node_modules/react-zdog
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0

If I had the bandwidth I would try to fix these errors myself, but I don't so I'm making this issue.

PGrad avatar Apr 04 '23 00:04 PGrad

I'm ran into the same problem. Any ideas how to fix or workaround it, please? Thanks

holem avatar Jul 18 '23 15:07 holem

It look like the error suggests that React Native 0.74.3 expects React 18.2.0 so the whole lib is deprecated now...

ju314ter avatar Jul 12 '24 19:07 ju314ter