question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot upgrade react-scripts to 3.1.2 due to webpack dependency

See original GitHub issue

Upgrade 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ndbroadbentcommented, Oct 9, 2019

Hi everyone, I’ve released new versions of craco-less and craco-antd:

  • craco-less version 1.14.4
  • craco-antd version 1.14.1

These both depend on the latest versions of craco (^5.5.0) and react-scripts (^3.2.0). (craco-less also has a matching webpack dependency for version 4.41.0, which matches react-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!

1reaction
alexandrtovmachcommented, Oct 1, 2019

@Vovan-VE Fix already available in 1.13.0. Please upgrade your dependency:

yarn upgrade craco-less@1.13.0

# or

npm install craco-less@1.13.0
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found