angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

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

Open peterpeterparker opened this issue 7 years ago • 13 comments

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.

peterpeterparker avatar May 01 '19 04:05 peterpeterparker

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

grgdlm avatar May 01 '19 10:05 grgdlm

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

cagcak avatar May 01 '19 12:05 cagcak

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"

imanubhardwaj avatar May 01 '19 13:05 imanubhardwaj

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

coffeeandcloud avatar May 01 '19 13:05 coffeeandcloud

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

Thanks. It worked.

imanubhardwaj avatar May 01 '19 14:05 imanubhardwaj

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

GuilhermeLis avatar May 01 '19 21:05 GuilhermeLis

I just fixed this and cut 5.1.3

jamesdaniels avatar May 01 '19 22:05 jamesdaniels

cool thx @jamesdaniels 👍

peterpeterparker avatar May 02 '19 06:05 peterpeterparker

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

peterpeterparker avatar May 08 '19 04:05 peterpeterparker

how to downgrade the version i am new to it

monitranjan avatar Jun 19 '19 15:06 monitranjan

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

jbistis avatar Jun 24 '19 11:06 jbistis

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

jbistis avatar Jun 24 '19 11:06 jbistis

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

ReaperTech avatar Aug 28 '19 23:08 ReaperTech