Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

css-loader error? #435

Closed
saniko opened this issue Apr 26, 2017 · 3 comments
Closed

css-loader error? #435

saniko opened this issue Apr 26, 2017 · 3 comments

Comments

@saniko
Copy link

saniko commented Apr 26, 2017

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
Copy link
Collaborator

birkir commented Apr 26, 2017

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: svg/svgo#622

@strues
Copy link
Collaborator

strues commented Apr 26, 2017

@saniko like @birkir said, the problem you're encountering is due to yarn clean yarnpkg/yarn#1051

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

@saniko
Copy link
Author

saniko commented Apr 26, 2017

Thanks.

@saniko saniko closed this as completed Apr 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants