Module not found (webpack)/hot/emitter @angular-devkit/build-angular after ionic serve - Ionic 4

npm install events

install events using npm.


(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...

  • swicth to node 9.5.0 (used n to do it)
  • switching to npm 5.6.0
  • remove global webpackage (I installed it for a try to solve version..)

    npm uninstall webpack -g

  • rm -rf node_modules

  • npm install
  • then an issue with rxjs-compat, so I installed the version 6.4.0 for rxjs and rxjs/compat

Then it worked... Maybe executing one of these steps will help you...