formkit / auto-animate

A zero-config, drop-in animation utility that adds smooth transitions to your web app. You can use it with React, Vue, or any other JavaScript application.
https://auto-animate.formkit.com
MIT License
12.83k stars 225 forks source link

Peer dependency error while installing #4

Closed guillermo-avalos closed 2 years ago

guillermo-avalos commented 2 years ago

Trying to test this, but getting the following error:

npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peerOptional react@"^16.8.0" from @formkit/auto-animate@1.0.0-beta.1
npm ERR!   node_modules/@formkit/auto-animate
npm ERR!     @formkit/auto-animate@"*" 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.

I'm running Node v18.2.0 and React v18.1.0

nattui commented 2 years ago

Try npm install @formkit/auto-animate --legacy-peer-deps, that should fix it!

guillermo-avalos commented 2 years ago

Thank you. That's the recommendation, just wanted to make sure it wouldn't break anything.

justin-schroeder commented 2 years ago

Wonder if we should just remove vue and react as peerDependencies — they're already marked as optional, but this could be confusing for people.

guillermo-avalos commented 2 years ago

@nattwasm Awesome, that fixed it. This literally took 4 seconds: https://www.magnayachts.com/en/second-hands @justin-schroeder 👍🏻 good idea

nattui commented 2 years ago

Wow! You guys work fast! ⚡️

andrew-boyd commented 2 years ago

@nattwasm Awesome, that fixed it. This literally took 4 seconds: https://www.magnayachts.com/en/second-hands @justin-schroeder 👍🏻 good idea

That's awesome! I like it a yacht. 😛