I just migrated my project under angular-cli and I\'m getting this error when I start it:
ERROR in Error encountered resolving symbol values statically.
You need to extract function like:
export function configFactory(config: ConfigService) {
return () => config.load()
}
...
providers: [{
provide: APP_INITIALIZER,
useFactory: configFactory,
deps: [ConfigService],
multi: true
}
See also
https://github.com/angular/angular/issues/11262
Angular4 APP_INITIALIZER won't delay initialization