【发布时间】:2017-09-21 14:23:38
【问题描述】:
尝试启动 npm 时出现错误:
Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda
引用导出的函数(位置 47:19 在原始 .ts 文件中),解析符号 D:/Projects/UI3/src/app/core/core.module.ts中的CoreModule
核心是:
providers: [
{provide: HttpService,
useFactory: (backend: XHRBackend, options: RequestOptions) => { // Here 47 line number
return new HttpService(backend, options);
},
deps: [XHRBackend, RequestOptions]},
AuthenticationService,
DialogsService,
AuthenticationGuard,
I18nService
]
所以,它以前工作过。
【问题讨论】:
标签: angular