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

npm i fails #19

Open
migh000 opened this issue Oct 13, 2023 · 1 comment
Open

npm i fails #19

migh000 opened this issue Oct 13, 2023 · 1 comment

Comments

@migh000
Copy link

migh000 commented Oct 13, 2023

npm i fails since @mui/styles is not compatible to React 18.

Any ideas on how to start the project?

@migh000
Copy link
Author

migh000 commented Oct 13, 2023

➜  amazon-cognito-saml-idp git:(main) ✗ npm i            
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @mui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR!   peer react@">= 16.8.0" from @aws-amplify/[email protected]
npm ERR!   node_modules/@aws-amplify/ui-react
npm ERR!     @aws-amplify/ui-react@"^3.0.3" from the root project
npm ERR!   27 more (@aws-amplify/ui-react-v1, @emotion/react, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from @mui/[email protected]
npm ERR! node_modules/@mui/styles
npm ERR!   @mui/styles@"^5.8.6" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.0" from @mui/[email protected]
npm ERR!   node_modules/@mui/styles
npm ERR!     @mui/styles@"^5.8.6" 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.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/ubuntu/.npm/_logs/2023-10-13T11_31_21_232Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/ubuntu/.npm/_logs/2023-10-13T11_31_21_232Z-debug-0.log

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

1 participant