【发布时间】:2017-09-21 03:29:50
【问题描述】:
我正在尝试使用泳道 NGX-charts [Single line chart not multi] 来实现折线图。但我收到一个错误,说:无法读取未定义的属性长度
我正在使用
angular-cli:1.0.0-beta.25.5
节点:v7.2.1
npm : 3.10.10
@swimlane/ngx-charts" : "^4.0.0
我卸载了 ng2-charts、chart.js 库,但仍然出现此错误
日志:
ViewWrappedError__zone_symbol__error: Error: Error in ./ProgressReportComponent class ProgressReportComponent - inline template:62:56 caused by: Cannot read property 'length' of undefined
at ViewWrappedError.Error (native)
at ViewWrappedError.ZoneAwareError (http://localhost:4200/vendor.bundle.js:201399:33)
at ViewWrappedError.BaseError [as constructor]
TypeError: Cannot read property 'length' of undefined(…)
【问题讨论】: