-
Notifications
You must be signed in to change notification settings - Fork 0
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
Node_modules of generated React frontend cannot be installed with npm 7 #293
Labels
bug
Something isn't working
Comments
Follow analysis, it seems to be in progress in react-scripts repository (facebook/create-react-app#10797) and should be available in a next minor version. Meanwhile, a workaround is to :
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a newly created project with the generator, I am not able to install node_modules of a react frontend using npm 7.
result of
npm i
npm 7 automatically try to install peer dependencies, which seems to cause issue be due to :
typescript: "^4.0.3"
in our package.json[email protected]
in our package.json, which has a peer dependency totypescript@"^3.2.1"
If I allow an upper minor version of
react-scripts
(i.e.react-scripts@^4.0.1
) which is supposed to fix this error (facebook/create-react-app#9892), I got a new error with@babel/core module
.Result of
npm i
:This seems to be an issue in dependencies of
react-scripts 4.0.3
itself:[email protected]
requires `@babel/[email protected]``[email protected]
requires@svgr/[email protected]
, which requires@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@"^7.13.12" from @babel/[email protected]
, which requires@babel/core@"^7.13.0"
The text was updated successfully, but these errors were encountered: