I am having issue with importing Observable.of
function in my project. My Intellij sees everything. In my code I have:
import {Observable} from
My silly mistake was that I forgot to add /add
when requiring the observable.
Was:
import { Observable } from 'rxjs/Observable';
import 'rxjs/observable/of';
Which visually looks OK becasue rxjs/observable/of
file, in fact, exists.
Should be:
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';