Observable.of is not a function

后端 未结 19 673
旧时难觅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:18

    // "rxjs": "^5.5.10"
    import { of } from 'rxjs/observable/of';
    
    .... 
    return of(res)
    

提交回复
热议问题