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.
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.