Just upgraded my React.js app to the new version of CRA (create-react-app 4.0.1), and when I try to compile, I got error on my SCSS files (the first file that try to be loaded is animations.scss):
Failed to compile.
./src/assert/css/master.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/assert/css/master.scss)
Error: Can't resolve './animations.scss' in 'C:\Or\Web\project\project\src\assert\css'
I also use the package: "node-sass": "^4.14.1"
My master.scss file:
@import url('./all.css');
@import url('./animations.scss');
@import url('./big-flag.scss');
@import url('./coat.scss');
@import url('./flags16-both.scss');
@import url('./flags16-extra.scss');
@import url('./flags32-both.scss');
@import url('./flags32-extra.scss');
@import url('./locations.scss');
@import url('./index.scss');
In their GitHub page I cant find a working solution:
https://github.com/facebook/create-react-app/issues/9870
Does anyone face this and have a fix?
Thanks in advance!