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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章