title: WebStorm underlines variables and functions in red despite my Angular2 TypeScript project works correctly
body: <p>When I open the project in WebStorm everything looks fine. Whenever I double click any of the .ts files it's being immediately marked red indicating a problem. Despite this, project works normally, the code is being executed correctly etc.</p>
  
  <p>For a reference, this is not a project specific problem, because a friend of mine working with exactly the same code, has no errors indicated by IDE. </p>
  
  <p>For example, let's take  this repo <a href="https://github.com/AngularClass/angular2-webpack-starter" rel="nofollow noreferrer">https://github.com/AngularClass/angular2-webpack-starter</a>. When browsing the project, I get the errors like </p>
  
  <blockquote>
    <p>Unresolved variable data</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/91ELv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/91ELv.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Unresolved function or method require()</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/U1Suk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U1Suk.png" alt="enter image description here"></a></p>
  
  <p>I also have an error with @Component annotation everywhere it's present in the project with <code>Invalid number of arguments, expected 0</code>:
  <a href="https://i.stack.imgur.com/5aLkp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5aLkp.png" alt="enter image description here"></a></p>
  
  <p>I have npm version 3.9.5, node version 6.2.2 and WebStorm version 2016.2.1 . I did <code>npm install</code> and <code>bower install</code>.</p>