Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for react 18 #59

Closed
Maraszynko opened this issue May 20, 2022 · 3 comments
Closed

Error for react 18 #59

Maraszynko opened this issue May 20, 2022 · 3 comments

Comments

@Maraszynko
Copy link

$ npm install -S react-useanimations
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: quarkandspark@0.1.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR! react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.9.0" from react-useanimations@2.0.8
npm ERR! node_modules/react-useanimations
npm ERR! react-useanimations@"*" 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.

@CesarBenavides777
Copy link

@Maraszynko I would add a --force or --legacy-peer-deps at the end of the install command

@amirreza-dev
Copy link

It will install it but it wont work

@tuanphungcz
Copy link
Member

The issue has been resolved with the inclusion of support for React 18 in this pull request: PR. The latest use-animations package should now be working properly with react 18

Thank you guys for your patience and understanding 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants