Skip to content

TypeError: app.firestore is not a function after updating to firebase 5.5.0 #1880

@mazlano27

Description

@mazlano27

Angular:
6.1.7

Firebase:
5.5.0

AngularFire:
5.0.0

** Errors in the JavaScript console **
TypeError: app.firestore is not a function
at firestore.js:22
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138)
at NgZone.push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular (core.js:3783)
at new AngularFirestore (firestore.js:20)
at _createClass (core.js:8431)
at _createProviderInstance (core.js:8393)
at resolveNgModuleDep (core.js:8356)
at _createClass (core.js:8421)
at _createProviderInstance (core.js:8393)

** Screenshots **
screen shot 2018-09-17 at 4 05 30 pm

Expected behavior

Angular application should bootstrap successfully.

Actual behavior

Application does not run at all.

I have tried to clean my npm cache, delete all node modules and re-installing all dependencies with no luck. I should note everything was working fine before I upgraded to firebase 5.5.0 and now even when i revert back to previous version 5.4.2 -> I am still getting this error.

Update: Managed to revert back 5.4.2 successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions