title: Module not found (webpack)/hot/emitter @angular-devkit/build-angular after ionic serve - Ionic 4
body: <p>Stack:</p>
  
  <ul>
  <li>node v10.15.1</li>
  <li>ionic 4.10.1</li>
  </ul>
  
  <p>When I run <code>ionic serve</code> I get: </p>
  
  <blockquote>
    <p>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'</p>
  </blockquote>
  
  <p>Failed to compile.</p>
  
  <p>Couldn't find an answer for this.</p>
  
  <p>I tried to:</p>
  
  <ul>
  <li>update @angular-devkit/build-angular</li>
  <li><code>npm install webpack-hot-dev-clients</code></li>
  <li><code>npm install -g webpack</code> and <code>npm install -g webpack-dev-server</code> as suggested <a href="https://github.com/darul75/web-react/issues/12" rel="noreferrer">here</a></li>
  <li><code>npm link wepack</code></li>
  <li>I also tried to update my angular CLI</li>
  </ul>
  
  <p><a href="https://stackoverflow.com/questions/42107073/cannot-resolve-module-webpack-hot-emitter-while-using-hot-reloader">Similar question</a></p>