-
Notifications
You must be signed in to change notification settings - Fork 69
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
This module breaks SASS modules composition in CRA #131
Comments
Debugged a bit more and found what exactly is breaking the build. So edited the issue to reflect that. |
It seems this is a css-loader issue per webpack-contrib/css-loader#131. The same issue has been opened on a number of loaders. It would be consistent with those cases to close this issue here. However I suspect that would just lead to people creating more issues so I will leave open for now. |
Error: resolve-url-loader: CSS error error Command failed with exit code 1. I'm getting this error when I try to build my project using react-scripts |
@shahan953 that error is not relevant to this issue. Please follow the docs. |
@igor10k is this still an issue in CRA? Everything I read points to this being fixed. |
In the mean time I'm going to close this issue. Please let me know if it is still a problem and we can reopen. |
Updated my CRA to the latest version and the build started failing. A little debugging showed that removing the
resolve-url-loader
fixes the issue.The error is thrown when trying to use the CSS modules composition feature with a css preprocessor. Composing from a SASS module doesn't work. Composing from a CSS module works.
Thrown error
Steps to reproduce
npx create-react-app test_app && cd test_app
yarn add node-sass
b.module.sass
witha.module.sass
withApp.js
add as the first lineimport './a.module.sass'
yarn start
and observe the errorb.module.sass
tob.module.css
and replace the contents witha.module.sass
changeb.module.sass
tob.module.css
The text was updated successfully, but these errors were encountered: