5
我的一个功能模块有这样的内容:角4 - 遇到错误解析符号值静态
declare function require(name: string);
@NgModule({
imports: [
// other modules here
ChartModule.forRoot(
require('highcharts'),
require('highcharts/highcharts-more'),
require('highcharts/modules/funnel'),
require('highcharts/modules/heatmap')
)
它运行在本地正常,但当我与督促标志构建它失败。我得到的错误是:
ERROR in Error encountered resolving symbol values statically. Reference to a non-exported function (position 26 :18 in the original .ts file), resolving symbol ....
ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in ...
有关如何解决此问题的任何想法?
我有类似的问题,但随着出口'const' – KarolDepka