This is a simple example that demonstrates the use of the lettable operator map
with pipe
from the provided link:
import { map } from 'rxjs/operator/map';
let o = of(1, 2, 3, 4).pipe(
map((v) => v * 2)
);
However, when running this code, it triggers the error message
Error:(34, 5) TS2684:The 'this' context of type 'void' is not assignable to method's 'this' of type 'Observable<{}>'.
Can you identify the issue causing this error?