TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable
In my case the error occurred only during e2e tests. It was caused by throwError in my AuthenticationInterceptor. I imported it from a wrong source because I used WebStorm’s import feature. I am using RxJS 6.2. Wrong: import { throwError } from ‘rxjs/internal/observable/throwError’; Correct: import { throwError } from ‘rxjs’; Here the full code of … Read more