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

Not compatible with React v17 #3

Open
anupkashyap opened this issue Jan 4, 2022 · 1 comment
Open

Not compatible with React v17 #3

anupkashyap opened this issue Jan 4, 2022 · 1 comment

Comments

@anupkashyap
Copy link

Installation fails with React v17 with dependency error.

npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@">= 15.3.0 < 16 || 16.x" from [email protected] npm ERR! node_modules/react-devicon npm ERR! react-devicon@"*" from the root project

@hazigabriel
Copy link

Hello,

I've encountered the same error just a few minutes ago, try installing the package using the following command:

npm install react-devicon --legacy-peer-deps

It seems that this dependency error is cause by React17, as mentioned here due to the large number of modules that haven't specifically added React v17 as a peerDependency, it's now commonplace to encounter the unable to resolve dependency tree error when running npm installs within a v17 React application.

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