title: Intellij doesn't recognize angular modules, html elements, pipes, and so on
body: <p>I'm having a problem getting angular language support running with a project that uses webpack (not sure if that's important, but without webpack everything works fine in intellij), and which is a multi module project consisting of java and an angular app. </p>
  
  <p>The problem is that none of angular's modules are recognized</p>
  
  <p><a href="https://i.stack.imgur.com/CDOcX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CDOcX.png" alt="enter image description here"></a></p>
  
  <p>Says RouterModule is not an angular module. </p>
  
  <p><a href="https://i.stack.imgur.com/h69Fh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/h69Fh.png" alt="enter image description here"></a></p>
  
  <p>No directive is matched for *ngFor and unresolved pipe async.</p>
  
  <p><a href="https://i.stack.imgur.com/00wBo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/00wBo.png" alt="enter image description here"></a></p>
  
  <p>Though MatAutocompleteModule is correctly imported.</p>
  
  <hr>
  
  <p>I've imported BrowserModule, CommonModule, and the project works perfectly fine. It's just intellij's detection that doesn't work.</p>
  
  <p>I've installed @angular/language-service via npm. I've restarted the IDE (so many times).</p>
  
  <p>What can I do to get this working?</p>
  
  <p>dependencies (angular)</p>
  
  <pre><code>"@angular/animations": "~7.2.14",
  "@angular/cdk": "~7.3.7",
  "@angular/common": "~7.2.14",
  "@angular/compiler": "~7.2.14",
  "@angular/core": "~7.2.14",
  "@angular/forms": "~7.2.14",
  "@angular/material": "^7.3.7",
  "@angular/platform-browser": "~7.2.14",
  "@angular/platform-browser-dynamic": "~7.2.14",
  "@angular/router": "~7.2.14",
  </code></pre>
  
  <p>devDependencies (angular related) </p>
  
  <pre><code>"@angular-devkit/build-angular": "~0.13.0",
  "@angular-devkit/build-ng-packagr": "~0.13.0",
  "@angular/cli": "7.3.4",
  "@angular/compiler-cli": "7.2.14",
  "@ngtools/webpack": "7.3.4",
  "@angular/language-service": "^7.2.14",
  "angular-router-loader": "0.8.5",
  "angular2-template-loader": "0.6.2",
  "typescript": "3.2.4",
  </code></pre>