Open harshaldhone opened 3 years ago
error TS2305: Module '"../../node_modules/rxjs/Observable"' has no exported member 'Observable'.
2 import { Observable } from 'rxjs/Observable';
Try to change this part:
import { Observable, interval as obInterval } from 'rxjs';
import { map, takeWhile, tap } from 'rxjs/operators';
...
start(){
let interval: any = obInterval(1000);
interval
.pipe(
takeWhile((_: any) => !this.isFinished ),
tap(() => this.current += 0.1)
)
.subscribe();
}
I am using angular 10 and facing this issue