1

I'm getting this error:

ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[InjectionToken config]: 
  StaticInjectorError(Platform: core)[InjectionToken config]: 
    NullInjectorError: No provider for InjectionToken config!
NullInjectorError: StaticInjectorError(AppModule)[InjectionToken config]: 
  StaticInjectorError(Platform: core)[InjectionToken config]: 
    NullInjectorError: No provider for InjectionToken config!

My module file already has import { InjectionToken } from '@angular/core'; and has InjectionToken in the providers list. What could be causing this error? Does InjectionToken rely on some other provider? This error message seems pretty useless.

Matt123
  • 556
  • 3
  • 15
  • 36
  • Post your module code where you're including firebase, versions, etc. – Phix Jun 03 '20 at 20:56
  • you probably didn't import some module, pretty sure you dont need InjectionToken in providers, this error is generic. pls post app.module.ts code – ihor.eth Jun 03 '20 at 22:53

0 Answers0