Property ‘catch’ does not exist on type ‘Observable’

Warning: This solution is deprecated since Angular 5.5, please refer to Trent’s answer below

=====================

Yes, you need to import the operator:

import 'rxjs/add/operator/catch';

Or import Observable this way:

import {Observable} from 'rxjs/Rx';

But in this case, you import all operators.

See this question for more details:

  • Angular HTTP GET with TypeScript error http.get(…).map is not a function in [null]

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)