angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

ng add @angular/fire <- Generates the config that does not compile

Open sushpop opened this issue 2 months ago • 1 comments

Angular version: 20.0.0
Angular Fire version: "@angular/fire": "20.0.1"

Following the workflow after executing

ng add @angular/fire

generates the config like below:

    provideFirebaseApp(() =>
      initializeApp({
        projectId: '*****',
        appId: '*****',
        storageBucket: '*****',
        apiKey: '*****',
        authDomain: '*****',
        messagingSenderId: '*****',
        measurementId: '*****',
        projectNumber: '*****',
        version: '**',
      }),
    ),
    provideFirestore(() => getFirestore()),

However, the underlying Firebase Config Object FirebaseOptions does not recognize the last 2 properties projectNumber and version.

They have to be commented out to make sure the application compiles. Can they be removed as they do not map correctly with the underlying interface?

sushpop avatar Oct 17 '25 09:10 sushpop

Encountering the same issue

johnmckay-reward avatar Oct 24 '25 17:10 johnmckay-reward