Upon installing Angular-cli, an error has surfaced:
A problem arose while resolving symbol values statically. Function calls are not supported. To resolve this, consider replacing the function or lambda with a reference to an exported function (position 55:19 in the original .ts file), which is causing symbol AppModule resolution issue at C:/TM-2013/Debt/Debt Platform/Code/main/Think.Debt.Presentation/deb-explorer-with-angular-cli/src/app/app.module.ts
Within my App.Module.ts file, there seems to be an issue with the following code snippet:
providers: [
// These services are required throughout the application
AppConfigService,
{ provide: APP_INITIALIZER, useFactory: configServiceFactory, deps: [AppConfigService], multi: true },
{
provide: HttpService,
useFactory: (backend: XHRBackend, options: RequestOptions) => {
return new HttpService(backend, options);
},
deps: [XHRBackend, RequestOptions]
}
],
EDIT:
Considering the .load method
{ provide: APP_INITIALIZER, useFactory: (config: AppConfigService) => () => config.load(), deps: [AppConfigService], multi: true },
{
provide: HttpService,
useFactory: (backend: XHRBackend, options: RequestOptions) => {
return new HttpService(backend, options);
},
deps: [XHRBackend, RequestOptions]
}
Is it feasible to transform this into a factory class given its current usage limitations?