title: error TS2307: Cannot find module '@angular/common/http' for HttpClientModule
body: <p>I am trying to import HttpClientModule using the following line in my app.module.ts:</p>
  
  <blockquote>
    <p>import { HttpClientModule }     from '@angular/common/http';</p>
  </blockquote>
  
  <p>and </p>
  
  <pre><code>imports: [
      ...
      HttpClientModule,
      ...
  ]
  </code></pre>
  
  <p>However I keep getting the same error:</p>
  
  <blockquote>
    <p>src/app/app.module.ts(4,38): error TS2307: Cannot find module '@angular/common/http'.</p>
  </blockquote>
  
  <p>Despite those exact lines being included in these tutorials:</p>
  
  <ul>
  <li><p><a href="https://angular.io/guide/http" rel="noreferrer">https://angular.io/guide/http</a></p></li>
  <li><p><a href="https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b" rel="noreferrer">https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b</a></p></li>
  <li><p><a href="http://blog.ninja-squad.com/2017/07/17/http-client-module/" rel="noreferrer">http://blog.ninja-squad.com/2017/07/17/http-client-module/</a></p></li>
  </ul>
  
  <p>How can I fix this and use HttpClient ?</p>