angular/angularfire

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

portah opened this issue · 2 comments

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

This issue does not seem to follow the issue template. Make sure you provide all the required information.

I do believe I found the issue. In my case the error was when I used data-connect. The sdk:generate command used different location for firebase (11.4.0) then the project (11.5.0 or 11.6.0).