將我的項目中的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問題?有沒有解決這個惱人的錯誤的解決方法?
壞消息:/。謝謝@lena! – Attila