posthtml / posthtml-loader

PostHTML for Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module not found: Error: Can't resolve 'posthtml-loader' in '<absolute path>'

jrencz opened this issue Β· comments

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

Fixed in efa672e
Released in v1.0.1 πŸŽ‰

Works fine, thx