Error for react 18
$ 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 I would add a --force or --legacy-peer-deps at the end of the install command
It will install it but it wont work
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 🙏