Angular js 2 'node_modules/rxjs/Observable"' has no exported member 'Observable'. import Observable

后端 未结 7 1219
故里飘歌
故里飘歌 2021-02-07 22:29

I am Getting below Error in Auth.d.ts file in Node_Modules Package.

[ts] Module \'node_modules/rxjs/Observable\"\' has no exported member \'Observable\'. import Observab

7条回答
  •  暖寄归人
    2021-02-07 23:06

    if your angular version is 6 and above.

    use below:

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

    import { timer } from "rxjs/observable/timer";

    Install - npm install --save rxjs-compat

    Also user pipe with other funtions(Take,Map).

    timer(0, 10) .pipe(take(1000)) .pipe(map(() => x));

提交回复
热议问题