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

There's upstream dependancy conflict regarding react while installing dependencies in the frontend #3

Open
DevBlocker opened this issue Apr 8, 2024 · 2 comments

Comments

@DevBlocker
Copy link

Cannot install the dependencies. Using --force or --legacy-peer-deps creates problems.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @material-ui/core@4.12.4
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@">=16.8.0" from @emotion/react@11.10.6
npm ERR! node_modules/@emotion/react
npm ERR! @emotion/react@"^11.10.6" from the root project
npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.10.6
npm ERR! node_modules/@emotion/styled
npm ERR! @emotion/styled@"^11.10.6" from the root project
npm ERR! 5 more (@mui/lab, @mui/material, @mui/styled-engine, ...)
npm ERR! 5 more (@mui/lab, @mui/material, @mui/styled-engine, ...)
npm ERR! 28 more (@emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.12.4" from the root project
npm ERR! peer @material-ui/core@"^4.12.1" from @material-ui/lab@4.0.0-alpha.61
npm ERR! node_modules/@material-ui/lab
npm ERR! @material-ui/lab@"^4.0.0-alpha.61" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.12.4" from the root project
npm ERR! peer @material-ui/core@"^4.12.1" from @material-ui/lab@4.0.0-alpha.61
npm ERR! node_modules/@material-ui/lab
npm ERR! @material-ui/lab@"^4.0.0-alpha.61" 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.

provided only the conflict part ^.

@abdulfaizan11
Copy link

hey! did you solve that error , I need a help

@DevBlocker
Copy link
Author

No, it is irresolvable as ERESOLVE says. You can use --legacy-peer-deps while installing the dependencies, to bring it to a somewhat broken but workable state.

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