Stack:
- node v10.15.1
- ionic 4.10.1
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:
- update @angular-devkit/build-angular
npm install webpack-hot-dev-clients
npm install -g webpack
andnpm install -g webpack-dev-server
as suggested herenpm link wepack
- I also tried to update my angular CLI
It's been days now please help me
(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...
install events using npm.