TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable

Its all related to from where you imports:

 

Wrong:

import { from } from 'rxjs/internal/observable/from';
import { Observable } from 'rxjs';

Correct:

import { Observable } from 'rxjs';
Leave a reply