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
Please sign in to leave a comment.
https://youtrack.jetbrains.com/issue/WEB-21861 is fixed in WebStorm 2016.2. Please try the EAP build (https://confluence.jetbrains.com/display/WI/WebStorm+EAP) - I can't recreate the issue there:
I tried EAP and it works for my other projects -- thanks Elena!
@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
2016.2 can be expected this month