map is not accessible through the http client

map is an rxjs operator, you can use it like this:

import { map } from "rxjs/operators";
return this.http.post('...', todo).pipe(
 map(r => r.json())
);

and whu you are using the deprecated angular/http, you can use HttpClient

import { HttpClient } from '@angular/common/http';

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top