因此,当我在config.js
上使用commonjs时,此代码段效果很好import * as Ng2Highcharts from 'highcharts/modules/map';
Ng2Highcharts(Highcharts);
但是只要我使用以下导入切换到系统:
import * as Ng2Highcharts from 'highcharts/modules/map';
Ng2Highcharts.default(Highcharts)
我收到错误:
ORIGINAL EXCEPTION: TypeError: x[(intermediate value)(intermediate value)(intermediate value)] is not a constructor
ORIGINAL STACKTRACE:
不确定为什么config.js从cjs切换到系统会破坏这个,
由于
肖恩