From 13f576d83f9d5786c79e09a868c2e99aff1a70b3 Mon Sep 17 00:00:00 2001 From: hjklasdfg Date: Tue, 14 Jan 2025 21:18:58 +0700 Subject: [PATCH] Update app.config.ts Fixed the bug that the argument of type 'EnvironmentProviders' is not assignable to parameter of type 'ImportProvidersSource'. --- angularfire-start/src/app/app.config.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/angularfire-start/src/app/app.config.ts b/angularfire-start/src/app/app.config.ts index 03ce6427b..274fb46d3 100644 --- a/angularfire-start/src/app/app.config.ts +++ b/angularfire-start/src/app/app.config.ts @@ -11,14 +11,12 @@ import { provideRouter } from '@angular/router'; export const appConfig: ApplicationConfig = { providers: [ - importProvidersFrom( - provideFirebaseApp(() => initializeApp(environment.firebase)), - provideFirestore(() => getFirestore()), - provideAuth(() => getAuth()), - provideFunctions(() => getFunctions()), - provideStorage(() => getStorage()), - provideMessaging(() => getMessaging()) - ), - provideRouter(routes) + provideRouter(routes), + provideFirebaseApp(() => initializeApp(environment.firebase)), + provideFirestore(() => getFirestore()), + provideAuth(() => getAuth()), + provideFunctions(() => getFunctions()), + provideStorage(() => getStorage()), + provideMessaging(() => getMessaging()) ], };