我正在尝试导入一个使用highcarts的模块,并希望在我的cli应用程序中渲染模块中的组件。
但是我得到了这个错误
我正在使用
"@types/highcharts": "^5.0.16",
"angular": "^1.6.9",
"angular-highcharts": "^5.2.8",
"core-js": "~2.5.1",
"highcharts": "^6.0.6",还有没有人遇到过这个问题?
export class LineStatisticsComponent {图表=新图表({
title: {
text: 'sample chart '
},发布于 2018-02-12 22:27:11
我是通过使用以下命令得到修复的
ng serve --target=production --aot=true 我不确定为什么会发生这种情况,但是
ng serve 单独失败,错误图表模块不是一个函数,所以如果有人知道为什么会有这种行为,请让我知道
https://stackoverflow.com/questions/48743327
复制相似问题