Check out example codes for "'this' context of type 'void' is not assignable to method's 'this' of type 'Observable<{}>'.". It will help you in understanding the concepts better.

Code Example 1

import { map } from "rxjs/operators";

Learn ReactJs, React Native from akashmittal.com