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

前端 未结 7 2104
醉酒成梦
醉酒成梦 2021-02-08 01:59

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-08 02:10

    If you are using angular version 6 then You can use

    // creation and utility methods

    import { Observable, Subject, pipe } from 'rxjs';
    

    // operators all come from rxjs/operators

    import { map, takeUntil, tap } from 'rxjs/operators';
    

提交回复
热议问题