Module not found: Error: Can't resolve 'posthtml-loader' in '<absolute path>'
jrencz opened this issue Β· comments
Jarek Rencz commented
After installing postcss-loader@1.0.0
I started getting errors that make my webpack build fail.
π Details
Module not found: Error: Can't resolve 'posthtml-loader' in ''
OS | node | npm/yarn | package |
---|---|---|---|
macOS 10.13.1 | 8.9.1 | npm 5.5.1 | 1.0.0 |
Installed postcss-loader@1.0.0
has main
field in package.json
set to index.js
which doesn't exist.
Versions <1 had explicit main
. Version 1.0.0
only has files
which doesn't seem to be enough for webpack.
Adding "main": "lib"
resolves the issue
Michael Ciniawsky commented
Jarek Rencz commented
Works fine, thx