This line of typescript code is throwing an error when transpiling.
getXXX(): Observable<any> {
return this.http.get('api/xxx').catch(err => {return err});
}
The error is
Supplied parameters do not match any signature of call target
I have the following imports in my script
import {Observable} from "rxjs/Rx";
import 'rxjs/add/operator/catch';
How doI fix it
). Also, you can just importObservableinstead of the whole lib:import {Observable} from "rxjs/Observable";