Cannot upgrade react-scripts to 3.1.2 due to webpack dependency
See original GitHub issueUpgrade react-scripts
to 3.1.2
cause the following tree:
├─┬ craco-antd@1.12.0
│ └─┬ craco-less@1.12.0
│ └── webpack@4.39.1
└─┬ react-scripts@3.1.2
└── webpack@4.40.2
As the result, the ./node_modules/webpack
is 4.39.1. This cause react-scripts
to report an error (“prefligh check”).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:12 (7 by maintainers)
Top Results From Across the Web
'npm start' returns error: "There might be a problem with the ...
Try running npm ls webpack in your project folder. This will tell you which other package (apart from the expected react-scripts) installed ...
Read more >react-scripts - npm
react -scripts. This package includes scripts and configuration used by Create React App. Please refer to its documentation:.
Read more >react-scripts-ts - npm Package Health Analysis - Snyk
For projects generated with at least this version, the init script takes care of properly installing it as dev dependency to the generated...
Read more >How to Upgrade to React 17 and Webpack 5 Step by Step
1. Delete package-lock.json (not package. · 2. Delete node_modules in your project folder. rm -rf node_modules · 3. Remove "Webpack" from ...
Read more >What Does Create-React-App Actually Do? | by Andrew Mc
As you can see the majority of what react-scripts does for you is related to setting up and running Webpack. Almost every other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi everyone, I’ve released new versions of
craco-less
andcraco-antd
:craco-less
version1.14.4
craco-antd
version1.14.1
These both depend on the latest versions of
craco
(^5.5.0
) andreact-scripts
(^3.2.0
). (craco-less
also has a matchingwebpack
dependency for version4.41.0
, which matchesreact-scripts
. This is needed to silence some warnings when installing dependencies.)Please try out these latest versions and let me know if you are still running into any issues. Thanks!
@Vovan-VE Fix already available in 1.13.0. Please upgrade your dependency: