Build breaks with webpack 2, postcss and svg-inline
See original GitHub issueI’m submitting a bug report
Webpack version: 2.x
Please tell us about your environment: OSX 10.x
Current behavior:
With a specific file structure and when using postcss-loader
, postcss-import
and svg-inline-loader
, I get the following error:
Module build failed: (SystemJS) ENOENT: no such file or directory, open '/Users/karolis/webpack-2-failing-build/loader-utils'
Expected/desired behavior: The build should work.
To reproduce
- Clone https://github.com/KidkArolis/webpack-2-failing-build
- Run
npm install && webpack --progress
I think the bug itself is caused by postcss-import
, but this only happens in webpack@2, so I thought I’ll post here first and cross link to postcss-import
repo. It would be nice to dive deeper and understand what’s causing this issue. It only seems to be happening with this very specific file structure. Moving the .css file around for example, might cause the build to work again. Any pointers on how to debug this further would also be appreciated.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Yep, postcss-import somehow breaks webpack’s module resolution. It may be a bug with webpack’s SystemJS support, but for now the workaround is to pin postcss-import to 8.1.0.
Issue was closed because of inactivity.
If you think this is still a valid issue, please file a new issue with additional information.