Cannot find module 'webpack' error in examples
See original GitHub issueI’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:
- Created 6 years ago
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@deejep That error normally means that you have another dev server running on that port
Try
pkill -9 node
orkillall node
in your console if you can’t find the offender.@katzdave you need to install in the root directory as well. This is a known bug that we plan to address soon.