Observable.of is not a function

后端 未结 19 701
旧时难觅i
旧时难觅i 2020-11-30 19:41

I am having issue with importing Observable.of function in my project. My Intellij sees everything. In my code I have:

import {Observable} from          


        
19条回答
  •  一向
    一向 (楼主)
    2020-11-30 20:35

    This should work properly just try it.

    import { Observable } from 'rxjs/Observable';
    import 'rxjs/add/observable/of';
    

提交回复
热议问题