2016-05-29 28 views
1

将我的项目中的Angular 2升级到rc.1后,我的IDE,PHPStorm 2016.1。找不到很多属性和静态函数,例如从Observable class(rxjs)。像:Observable.of,Observable.forkJoin。Angular 2 rc.1和PhpStorm 2016.1.2未解决变量

我使用typescript作为Angular 2开发的默认语言。

我认为我的问题类似于这个问题:Angular 2 2.0.0-rc.1 Property 'map' does not exist on type 'Observable<Response>' not the same as issue report,但没有有用的信息PHPStorm。

有关该问题的一个画面: the unresolved static function

我输入可观察像,这一点 - 这工作WLL与角2公测16:

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

我的package.json的一部分 - 如果这能帮助:

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

的d自动完成不起作用:/

这是一个Angular 2的bug吗?还是RxJS问题?有没有解决这个恼人的错误的解决方法?

回答

0

PHPStorm中的Angular2支持与Angular2 RC不兼容。 WEB-21541已修复,修复将于2016年推出.2

+0

坏消息:/。谢谢@lena! – Attila