Cannot find module '@firebase/app-types/private' - Firebase throws error

前端 未结 4 1318
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 11:42

I am working on application using angular and firebase. I installed firebase with the instructions given on site and the versions as follows,

\"angularfire2         


        
4条回答
  •  不思量自难忘°
    2020-12-03 12:38

    Solution:

    1. Inside package.json, remove ^ from "firebase": "^4.8.1"

    1.1 Downgrade Firebase from 4.8.1 to 4.8.0 by changing 4.8.1 to 4.8.0

    1.2 End result should look like this: "firebase": "4.8.0"

    2. Run npm update in the Project Root. NPM will downgrade Firebase for ya

    3. Run ng serve --open to check for compilation errors. There shouldn't be any.

    4. Enjoy!

    Reason:

    Firebase had introduced some breaking changes that AngularFire2 had not coped up with yet. Until the AngularFire2 team work it out, this will be the solution.

提交回复
热议问题