score:2

Accepted answer

It should be

import { mapTo } from 'rxjs/operators';

instead of

import { mapTo } from 'rxjs/operator/mapTo';

source: https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md#usage


Related Query

More Query from same tag