ctrlplusb / react-universally

A starter kit for universal react applications.
MIT License
1.7k stars 244 forks source link

css-loader error? #435

Closed saniko closed 7 years ago

saniko commented 7 years ago

Hi Guys, When I'm running the yarn build command I get this error: ` ERROR in ./~/css-loader!./shared/components/DemoApp/globals.css Module build failed: Error: ENOENT: no such file or directory, open 'C:****r\node_modules\svgo.svgo.yml'

` I'm not sure it's a css-loader error, my project does not depend on SVGO, but it appears in node-modules folder. All works fine in develop mode.

Any ideas? I'm running on windows 10 with the latest code.

Thanks.

birkir commented 7 years ago

If you run the command yarn why csso we get the result css-loader#cssnano#postcss-svgo.

So css-loader is in fact depending on svgo.

This seems to fix the problem: https://github.com/svg/svgo/issues/622

strues commented 7 years ago

@saniko like @birkir said, the problem you're encountering is due to yarn clean https://github.com/yarnpkg/yarn/issues/1051

Delete your node_modules. Manually create a .yarncean file and create a filter !.svgo.yml

saniko commented 7 years ago

Thanks.