Skip to content

Since "firebase": "11.4.0" , provideFirebaseApp do not run initializeApp #3642

Closed
@portah

Description

@portah

After I upgraded to firebase 11.5 and the 11.6 my angular app returns:

chunk-5K356HEJ.js:39 ERROR FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app).
    at app.config.ts:85:31

line 85 and down are:

 provideFirebaseApp(() => initializeApp(environment.firebaseConfig)),
        provideAuth(() => {
            const auth = getAuth();
            if (environment.useEmulators) {
                connectAuthEmulator(auth, 'http://127.0.0.1:9099', {
                    disableWarnings: true,
                });
            }
            return auth;
        }),

In order to reproduce I do believe one just need to update firebase to the latest package

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