Observable.of不是一個函數 - Observable.of is not a function

問題:

I am having issue with importing Observable.of function in my project. 我在我的項目中導入Observable.of函數時遇到問題。 My Intellij sees everything. 我的Intellij看到了一切。 In my code I have: 在我的代碼中,我有:

import {Observable} from 'rxjs/Observable';

and in my code I use it like that: 在我的代碼中我使用它:

return Observable.of(res);

Any ideas? 有任何想法嗎?


解決方案:

參考一: https://en.stackoom.com/question/2TR6i
參考二: https://stackoom.com/question/2TR6i
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章