jeanverster / chakra-ui-steps

Steps component designed to work seamlessly with Chakra UI
https://chakra-ui-steps.vercel.app
390 stars 44 forks source link

Cant install package #67

Closed angelhodar closed 2 years ago

angelhodar commented 2 years ago

Hey, I have started a new chakra ui project (it is 1.8.8 at the moment of writing) and npm gives me the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: client@0.1.0
npm ERR! Found: framer-motion@6.3.3
npm ERR! node_modules/framer-motion
npm ERR!   framer-motion@"^6.3.3" from the root project
npm ERR!   peer framer-motion@"3.x || 4.x || 5.x || 6.x" from @chakra-ui/react@1.8.8
npm ERR!   node_modules/@chakra-ui/react
npm ERR!     @chakra-ui/react@"^1.8.8" from the root project
npm ERR!     peer @chakra-ui/react@">=1.6.7" from chakra-ui-steps@1.7.2
npm ERR!     node_modules/chakra-ui-steps
npm ERR!       chakra-ui-steps@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer framer-motion@"^5" from chakra-ui-steps@1.7.2
npm ERR! node_modules/chakra-ui-steps
npm ERR!   chakra-ui-steps@"*" 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.

It seems that you need to update peer dependencies for framer motion from 5 to 6

jeanverster commented 2 years ago

Hey! Thanks for pointing this out, it's likely I will need to update to framer motion v6, will see if I can get around to this today 👍

Kourin1996 commented 2 years ago

@angelhodar FYI, you might want to downgrade framer-motion to v5 if you don't mind. My project can be built with the following the module versions.

"dependencies": {
    "@chakra-ui/react": "^1.8.8",
    "chakra-ui-steps": "^1.7.2",
    "framer-motion": "^5.6.0",
    "react": "^18.1.0",
  },
angelhodar commented 2 years ago

@jeanverster Thanks!! @Kourin1996 Thanks for the tip! I can continue with other things until the package is updated so it isnt a problem for now.

jeanverster commented 2 years ago

Hi @angelhodar can you try with the latest version (1.7.3) and let me know if it works :) Sorry for the delay!

angelhodar commented 2 years ago

@jeanverster Now it works perfectly!