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

后端 未结 7 1506
渐次进展
渐次进展 2021-02-07 22:48

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:19

    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));

    0 讨论(0)
提交回复
热议问题