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.