[英]NG2-Charts Error Can't Bind Datasets To Base-Charts In Angular2 After Update
在将OSX更新为Sierra和angular-cli之后,我的Angular 2应用程序坏了。 我现在收到有关ng2-charts
错误
我尝试还原,甚至尝试进一步回滚到其他版本的Node,NPM和Angular-cli,但没有任何方法可以清除错误并允许应用渲染。
这些是我遇到的错误,它们引用了我试图将数据集绑定到基本图表的每一行。
捆绑
<base-chart class="chart"
[datasets]="lineChart1Data" [labels]="lineChart1Labels" [options]="lineChart1Options" [colors]="lineChart1Colours" [legend]="lineChart1Legend" [chartType]="lineChart1Type" (chartHover)="chartHovered($event)" (chartClick)="chartClicked($event)"
style="height:70px;"></base-chart>
错误
zone.js:344Unhandled Promise rejection: Template parse errors:
Can't bind to 'datasets' since it isn't a known property of 'base-chart'.
1. If 'base-chart' is an Angular component and it has 'datasets' input, then verify that it is part of this module.
2. If 'base-chart' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("iv>
<div class="chart-wrapper p-x-1">
<base-chart class="chart" [ERROR ->][datasets]="lineChart1Data" [labels]="lineChart1Labels" [options]="lineChart1Options" [colors]="lineC"): DashboardComponent@19:46
我已经在这个应用程序上工作了好几个星期了,没有任何问题,现在这已经整日困扰着我,有什么想法吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.