![](/img/trans.png)
[英]Angular error: Can't bind to 'x property' since it isn't a known property of 'x element' , even after putting @Input in child component
[英]Build error after updating from Angular 9 to Angular 10: “ERROR in Can't bind to 'selectedValue' since it isn't a known property of 'tbody'”
我刚刚从 Angular 9.1 升级到 10,但出现以下错误:
ERROR in Can't bind to 'selectedValue' since it isn't a known property of 'tbody'. ("
[rows]="_weeks"
[todayValue]="_todayDate!"
[ERROR ->][selectedValue]="_selectedDate!"
[labelMinRequiredCells]="3"
[activeCell]="_dateA")
没有提到错误源自哪个文件/包/包,因此很难调试。 而且...没有编译错误(ng serve)或警告。
我正在使用 Angular Material 10.1.3、cdk 10.1.3、ngx-material-timepicker:5.5.2
我尝试过但没有奏效的事情:将 CommonModule 添加到我的所有子模块中。 检查带有日期的表上的模板错误。 在整个应用程序中搜索错误消息中的关键字,例如“selectedValue”、“_selectedDate!”...等。 删除节点模块并重新安装 npm。 数小时的研究试图找到答案。
通过手动卸载 @angular-material-components/datetime-picker 并重新安装 4.0.5 版修复了我的构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.