【发布时间】:2017-04-15 05:37:15
【问题描述】:
我在尝试编译我的应用程序时收到 "Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol DeclarantModule" 错误。当模块有 forRoot 或 StoreModule.provideStore(rootReducer) 函数调用时会发生这种情况。
如何解决?为什么会这样?我不明白,我认为它是原生 angular 2 函数,它使用配置导入模块。
【问题讨论】:
-
目前,您似乎无法同时配置模块和使用 AOT。
-
尝试恢复到 Angular 版本 2.3.1,如下所述:stackoverflow.com/questions/41463860/…
标签: angular angular2-aot