Angular 2 false positive error for type 'Type'

Hi

I'm getting a false positive error of "Argument type AppComponent is not assignable to parameter type Type" in the bootstrap function of main.ts in the Angular 2 quickstart. I'm also getting it my other projects, but quickstart can be easily cloned here: https://github.com/angular/quickstart.git 

I'm using Webstorm 2016.3 Build WS-145.1616 built on 27 May 2016, Node 6.2.2 and npm 3.9.6 on Windows 10. I have not enabled the TypeScript compiler in the project (Settings>Languages & Frameworks>Typescript).  The same error is not occurring in Visual Studio Code.

Any help much appreciated

kind regards

Charlie

 

4 comments
Comment actions Permalink

I tried EAP and it works for my other projects -- thanks Elena!

0
Comment actions Permalink

@Elena - is there any ETA for 2016.2 release?

 

edit: It would seem that this bug has some history:

http://stackoverflow.com/questions/34366797/angular-2-bootstrap-function-gives-error-argument-type-appcomponent-is-not-assi

0
Comment actions Permalink

2016.2 can be expected this month

0

Please sign in to leave a comment.