Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './lib/compiler.js' in 2.6.0 #164

Closed
sambernet opened this issue Jan 11, 2016 · 3 comments
Closed

Cannot find module './lib/compiler.js' in 2.6.0 #164

sambernet opened this issue Jan 11, 2016 · 3 comments

Comments

@sambernet
Copy link

In 2.6.0 release the compiler was extracted to its own file.

The extracted files are not included in the npm package published to the registry though (no /lib folder in node_modules/html-webpack-plugin).

Stack trace (running webpack build through gulp):

Error: Cannot find module './lib/compiler.js'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (c:\dev\git\kw-advisory-gui\node_modules\html-webpack-plugin\index.js:7:21)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (c:\dev\git\kw-advisory-gui\webpack.config.js:5:25)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)

When reverting to 2.5.0 all is well again.

Regards
Sam Bernet

@milyord
Copy link

milyord commented Jan 11, 2016

Same here, it seems like your latest changes with moving stuff to ./lib/compiler.js never made it's way to npm. Try to re-publish. Installing directly from your github tags like https://github.com/ampedandwired/html-webpack-plugin/archive/v2.6.0.tar.gz works.

@jantimon
Copy link
Owner

Oh sry forgot to update the package.json files array:
https://github.com/ampedandwired/html-webpack-plugin/blob/feature/loaders/package.json#L6

Will be fixed soon!

@lock
Copy link

lock bot commented Jun 1, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2018
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