Skip to content

Commit

Permalink
Update app.config.ts
Browse files Browse the repository at this point in the history
Fixed the bug that the argument of type 'EnvironmentProviders' is not assignable to parameter of type 'ImportProvidersSource'.
  • Loading branch information
hjklasdfg authored and Li Linyi committed Jan 16, 2025
1 parent 967c2c0 commit 13f576d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions angularfire-start/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
],
};

0 comments on commit 13f576d

Please sign in to comment.