The ‘this’ context of type ‘void’ is not assignable to method’s ‘this’ of type ‘Observable’

I just had the same issue and it turns out I was importing map and startWith from the wrong directory.

import {map, startWith} from "rxjs/operators";

Use this to import both map and startWith and it should work and compile.

Leave a Comment

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