question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'webpack/lib/node/NodeTemplatePlugin'

See original GitHub issue

After upgrading to 1.4.5 (Windows 10, Node 8.6.0) and running ng serve I get this error:

Cannot find module ‘webpack/lib/node/NodeTemplatePlugin’

I rebooted my machine, reinstalled all npm packages, nothing helps.

Basically, this is a blocking issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

23reactions
elvisbegoviccommented, Oct 20, 2017

after doing :

remove node_modules
remove package-lock.json
npm cache clean -f

works again for me!

5reactions
cipchkcommented, Oct 13, 2017

hi guys, maybe try deleting node_modules & package-lock.json files. at least i solve the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'webpack/lib/node/NodeTemplatePlugin ...
Another thing I would try is to delete the node_modules directory and then do npm install again. This error occurs only when webpack...
Read more >
Error Cannot find module webpack lib node ... - Edureka
Got this Error after running webpack. Webpack is installed globally and I'm running Node PS D:\Projects .
Read more >
Error: Cannot find module 'webpack/lib/node ... - GitHub
Hi, I get the same error after running webpack command:: module.js:341 - I have node v5.6.0 - working on the React.js program, as...
Read more >
How to fix Error: cannot find module "webpack" - Educative.io
The Cannot find module webpack occurs when webpack is not globally installed. It is a problem with the npm script or application. You...
Read more >
[SOLVED] Error Cannot find module 'webpack/lib ... - YouTube
Hello guys today's video, i'm going to show you how to fix the "Error: Cannot find module ' webpack / lib /util/makeSerializable.js", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found