After I updated angular/cli, I got an error:
error TS2339: Property 'map' does not exist on type 'Observable<Response>'
I tried every possible solution from Property 'map' does not exist on type 'Observable<Response>'
but still the error exists.
For the latest Version of rxjs we need to install npm install rxjs-compat from terminal then declare
import 'rxjs/add/operator/map';
Its easy to post an answer when you provide your code instead of a screenshot. Anyhow, you have to
pipe
it:Remember to import
map
like this:You can find a solution by using pipe. Here are the steps...
First import map
Modify your getuser() and other all functions by using pipe