Skip to content

Error in firebase.app.module.d.ts: Property 'performance' is missing in type 'FirebaseApp' #2059

Closed

Description

@peterpeterparker

Version info

angular/fire: 5.1.2
firebase: 5.11.0

How to reproduce these conditions

@angular/fire v5.1.2 seems to doesn't play well with firebase v5.11.0. when these versions are installed I face the following error when I start my (Ionic) app:

[ng] ERROR in node_modules/@angular/fire/firebase.app.module.d.ts(17,22): error TS2420: Class 'FirebaseApp' incorrectly implements interface 'App'.
[ng]   Property 'performance' is missing in type 'FirebaseApp'.

Downgrading firebase to v5.10.1 fix the issue. I guess the property 'performance' was added as a mandatory field in the last version of firebase.

Activity

  1. grgdlm commented on May 1, 2019

    @grgdlm

    Had this as well. Downgrading'll fix it. Cheers

  2. cagcak commented on May 1, 2019

    @cagcak

    Downgrading firebase to v5.10.1 fix the issue too.

    ERROR in node_modules/@angular/fire/firebase.app.module.d.ts(17,22): error TS2420: Class 'FirebaseApp' incorrectly implements interface 'App'.
      Property 'performance' is missing in type 'FirebaseApp' but required in type 'App'.
    
  3. imanubhardwaj commented on May 1, 2019

    @imanubhardwaj

    I'm also facing this issue, even used without ^ it stops working. Using it with Angular v7.
    "@angular/fire": "^5.1.2",
    "firebase": "^5.10.0"

  4. coffeeandcloud commented on May 1, 2019

    @coffeeandcloud

    It worked for me using "@angular/fire": "^5.1.1"and "firebase": "5.10.1". Maybe you try that?
    `

  5. imanubhardwaj commented on May 1, 2019

    @imanubhardwaj

    It worked for me using "@angular/fire": "^5.1.1"and "firebase": "5.10.1". Maybe you try that?
    `

    Thanks. It worked.

  6. added a commit that references this issue on May 1, 2019
    614a06e
  7. GuilhermeLis commented on May 1, 2019

    @GuilhermeLis

    It worked for me using "@angular/fire": "^5.1.1"and "firebase": "5.10.1". Maybe you try that?
    `

    I have to change in package.json and use the npm i... it doesn't clear to me

  8. jamesdaniels commented on May 1, 2019

    @jamesdaniels
    Contributor

    I just fixed this and cut 5.1.3

  9. peterpeterparker commented on May 2, 2019

    @peterpeterparker
    Author

    cool thx @jamesdaniels 👍

  10. peterpeterparker commented on May 8, 2019

    @peterpeterparker
    Author

    @jamesdaniels just noticed that there is no reference in the CHANGELOG about 5.1.3 ... on purpose or should I provide a PR to add a line about it (I guess the version contains only this fix right)?

  11. monitranjan commented on Jun 19, 2019

    @monitranjan

    how to downgrade the version i am new to it

  12. jbistis commented on Jun 24, 2019

    @jbistis

    I need 5.9.2 for firebase.firestore.FieldValue.increment(1). Does anyone have this working with newer versions of firebase?

  13. jbistis commented on Jun 24, 2019

    @jbistis

    Working with 5.10.1. thanks..to monitranjan npm install --save firebase@5.10.1

  14. ReaperTech commented on Aug 28, 2019

    @ReaperTech

    I need 5.9.2 for firebase.firestore.FieldValue.increment(1). Does anyone have this working with newer versions of firebase?

    yes I also need it to use increment(). using npm install --save firebase@5.10.1 fixed the issue and firebase.firestore.FieldValue.increment() working now

  15. added a commit that references this issue on Jul 16, 2024
    454eac3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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