Stack:
When I run ionic serve
I get:
ERROR in (webpack)/hot/emitter.js [ng] Module not found: Error: Can't resolve 'events' in '/zazou/node_modules/@angular-devkit/build-angular/node_modules/webpack/hot'
Failed to compile.
Couldn't find an answer for this.
I tried to:
npm install webpack-hot-dev-clients
npm install -g webpack
and npm install -g webpack-dev-server
as suggested here
npm link wepack
Similar question
Install events using npm.
npm install events
Or to save other people (e.g. repository users), run:
npm install events --save --dev
(same pb with angular 7, using angular/cli)
I don't have THE solution (as I don't really understand the issue), but after a lot of tries, it worked, so let me describe what I did, maybe it'll help you...
remove global webpackage (I installed it for a try to solve version..)
npm uninstall webpack -g
rm -rf node_modules
Then it worked... Maybe executing one of these steps will help you...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With