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

Created on 1 May 2019  路  13Comments  路  Source: angular/angularfire

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.

Most helpful comment

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

Thanks. It worked.

All 13 comments

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

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'.

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"

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

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

Thanks. It worked.

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

I just fixed this and cut 5.1.3

cool thx @jamesdaniels 馃憤

@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)?

how to downgrade the version i am new to it

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

Working with 5.10.1. thanks..to monitranjan npm install --save [email protected]

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 [email protected] fixed the issue and firebase.firestore.FieldValue.increment() working now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

martinyoussef picture martinyoussef  路  3Comments

mypark picture mypark  路  3Comments

DennisSmolek picture DennisSmolek  路  3Comments

aucevica picture aucevica  路  3Comments

jteplitz picture jteplitz  路  3Comments