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