1

After I upgraded Angular 2 in my project to rc.1, my IDE, PHPStorm 2016.1. can't find a lot of properties and static functions for example from Observable class (rxjs). Like: Observable.of, Observable.forkJoin.

I use typescript as the default language of Angular 2 developement.

I think my problem is similar to this question: Angular 2 2.0.0-rc.1 Property 'map' does not exist on type 'Observable<Response>' not the same as issue report, but there is no useful information for PHPStorm.

A picture about the problem: the unresolved static function

I import Observable like, this - and this worked wll with Angular 2 beta 16.:

import 'rxjs/Rx'; import {Observable} from "rxjs/Observable";

A part of my package.json - if this helps:

"rxjs": "5.0.0-beta.6", "typescript": "~1.9.0-dev.20160526-1.0", "typings": "^0.8.1",, "gulp-typescript": "^2.13.4",

And the auto completion doesn't works :/

Is that an Angular 2 bug? Or an RxJS problem? Is there any workaround to solve that annoying error?

Community
  • 1
  • 1
Attila
  • 13
  • 3

1 Answers1

0

Angular2 support in PHPStorm is not compatible with Angular2 RC. WEB-21541 is fixed, fix will be available in 2016.2

lena
  • 90,154
  • 11
  • 145
  • 150