Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AuthModule)[AuthService -> AuthService -> AngularFirestore -> InjectionToken

//You need to import the old module as a work around, "AngularFireModule.initializeApp(environment.firebase)"


//Example:
import {AngularFireModule} from '@angular/fire/compat'


@NgModule({
  declarations: [
  ...
  ],
  imports: [
    ...
    AngularFireModule.initializeApp(environment.firebase), // here you will put firbase config object
  ],
  providers : [
   ..
  ]
})
export class AuthModule { }
 
PREVIOUS NEXT
Tagged: #ERROR #Uncaught #AuthService #AngularFirestore #InjectionToken
ADD COMMENT
Topic
Name
4+8 =