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' error in examples

See original GitHub issue

I’m hitting the following issue when trying to run the examples which include webpack (in particular i’ve tried geojson and hello-world-webpack2)

npm run start
> @ start /home/david/git/deck.gl/examples/geojson
> webpack-dev-server --progress --hot --port 3030 --open

module.js:472
    throw err;
    ^

Error: Cannot find module 'webpack'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/david/git/deck.gl/examples/webpack.config.local.js:10:17)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

Full logs: npm-debug.txt


I’ve tried pretty much every suggestion from these two posts (uninstalling locally/globally, re-installing globally, installing with --save-local): https://stackoverflow.com/questions/29492240/error-cannot-find-module-webpack https://stackoverflow.com/questions/36393969/error-cannot-find-module-webpack

I’m running ubuntu 16.04 node v7.5.0 npm v4.1.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
ibgreencommented, Jun 21, 2017

@deejep That error normally means that you have another dev server running on that port

Try pkill -9 node or killall node in your console if you can’t find the offender.

1reaction
ibgreencommented, Jun 19, 2017

@katzdave you need to install in the root directory as well. This is a known bug that we plan to address soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Error: Cannot find module 'webpack' - Stack Overflow
Error: Cannot find module 'webpack' is a node error. So this has nothing to do with webpack itself (afaict). It seems like node...
Read more >
How to fix Error: cannot find module "webpack" - Educative.io
1. Install webpack in the local app folder · 2. Link webpack to your project.
Read more >
Error: Cannot find module 'webpack' · Issue #21679 - GitHub
I just updated to 10.0.6 version from 10.0.5 and im getting the next error: Error: Cannot find module 'webpack'.
Read more >
Cannot find module 'webpack' error | bobbyhadz
To solve the "Cannot find module 'webpack'" error, make sure to install webpack globally by running the npm i -g webpack command and...
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