Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERESOLVE overriding peer dependency -- can't install chakra-ui #18

Open
nikhilpatel87 opened this issue Jan 21, 2021 · 2 comments
Open

Comments

@nikhilpatel87
Copy link

I created a project folder. Inside that folder I ran npx create-react-app react-app. After installation completed, I cd into the react-app and ran: npm install @chakra-ui/react. I also tried npm install @chakra-ui/core. Both commands started the install meter then stopped and gave this error:

npm WARN ERESOLVE overriding peer dependency
npm ERR! Cannot read property 'length' of undefined

I am not sure if this is a bug or which peer dependency this is referring to. I haven't made any modifications to the react app directory.

@anuaimi
Copy link

anuaimi commented Feb 11, 2021

I'm getting the same error.
I'm pretty new to js but I think it has to do with the fact that chakra-ui needs to work with React 16 even though React 17 is the default install.

npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]

npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.x" from [email protected]
npm ERR! node_modules/chakra-ui
npm ERR!   chakra-ui@"*" from the root project

Looks like Chakra-ui has gotten stale. Not sure if the project is still active as there hasn't been a commit since 2019.

@anuaimi
Copy link

anuaimi commented Feb 11, 2021

Actually, it looks like the project has moved to another repo ... https://github.com/chakra-ui/chakra-ui/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants