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
npm install
command. – Keciakeck