TypeError: rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable.throw is not a function
Observable.throw()
has been deleted.
Try using Observable.throwError()
. Apparently the definitions aren't up to date just yet.
You can import it using import { throwError } from 'rxjs';
Import:
import { throwError } from 'rxjs';
Usage:
return throwError(err);