auto-animate icon indicating copy to clipboard operation
auto-animate copied to clipboard

Peer dependency error while installing

Open guillermo-avalos opened this issue 2 years ago • 6 comments

Trying to test this, but getting the following error:

npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peerOptional react@"^16.8.0" from @formkit/[email protected]
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

guillermo-avalos avatar May 20 '22 12:05 guillermo-avalos

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

nattui avatar May 20 '22 12:05 nattui

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

guillermo-avalos avatar May 20 '22 12:05 guillermo-avalos

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

justin-schroeder avatar May 20 '22 13:05 justin-schroeder

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

guillermo-avalos avatar May 20 '22 14:05 guillermo-avalos

Wow! You guys work fast! ⚡️

nattui avatar May 20 '22 14:05 nattui

@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. 😛

andrew-boyd avatar May 24 '22 15:05 andrew-boyd