-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Update sass-loader to v10.0.5 or newer for use node-sass v5.0.0 #10280
Comments
I noticed the version has already been bumped to |
I don't recommend this solution, but in the meantime they will release a new patch for react-scripts, i did these steps after installing all node modules packages.
After this you should have a new folder node_modules/sass-loader with version 10.0.5, and it will solve the issue above
|
Should have been released with v4.0.2. 👍 |
The only solution that I find to sass . |
Thank you so much |
Describe the bug
create-react-app is using sass-loader: 8.0.2 in this version sass-loader does not allow to use node-sass higher versions, it has to be v4 only. So please update it. In sass-loader v10.0.5 is fixed.
webpack-contrib/sass-loader#898
https://stackoverflow.com/questions/64625050/error-node-sass-version-5-0-0-is-incompatible-with-4-0-0
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
node-sass
Environment
Windows 10 Pro
npm v10.23.0
node-sass v5.0.0
react-scripts v4.0.1
Environment Info:
current version of create-react-app: 4.0.1
running from C:\Users\tomec\AppData\Roaming\npm-cache_npx\3252\node_modules\create-react-app
System:
OS: Windows 10 10.0.19042
CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
Binaries:
Node: 10.23.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: Not Found
Edge: Spartan (44.19041.423.0), Chromium (87.0.664.66)
Internet Explorer: 11.0.19041.1
npmPackages:
react: ^17.0.1 => 17.0.1
react-dom: ^17.0.1 => 17.0.1
react-scripts: ^4.0.1 => 4.0.1
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
Expected behavior
SASS files should compile
Actual behavior
Reproducible demo
The text was updated successfully, but these errors were encountered: