I am upgrading my app to Angular 6. I am upgrading from Angular 4, but the code below is causing errors in Angular 6, where it worked fine
Import the Library with following method and rearrange the code
import { catchError } from 'rxjs/operators'; return Observable.pipe(catchError =>...);
This worked for me.