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

后端 未结 7 1184
故里飘歌
故里飘歌 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:03

    You have to downgrade 'rxjs' to use the current 'firebase' package.

    The imports changed in new versions of 'rxjs', and firebase is compatible only with version 5.x.x of RxJs for now.

    Change your package.json file to use a compatible version of rxjs:

    "rxjs": "5.6.0-forward-compat.4"
    

    and re-run npm install:

    npm i

提交回复
热议问题