react-useanimations icon indicating copy to clipboard operation
react-useanimations copied to clipboard

Error for react 18

Open Maraszynko opened this issue 3 years ago • 1 comments

$ npm install -S react-useanimations npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 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! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.9.0" from [email protected] 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.

Maraszynko avatar May 20 '22 11:05 Maraszynko

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

CesarBenavides777 avatar Sep 24 '22 15:09 CesarBenavides777

It will install it but it wont work

amirreza-dev avatar Oct 29 '22 21:10 amirreza-dev

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 🙏

tuanphungcz avatar Dec 27 '22 09:12 tuanphungcz