[英]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'”
I just upgraded from Angular 9.1 to 10 and I'm getting the below error:我刚刚从 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")
There is no reference to which file/package/bundle the error is originating from so it's difficult to debug.没有提到错误源自哪个文件/包/包,因此很难调试。 And... there are no compile errors (ng serve) or warnings.而且...没有编译错误(ng serve)或警告。
I am using Angular Material 10.1.3, cdk 10.1.3, ngx-material-timepicker: 5.5.2我正在使用 Angular Material 10.1.3、cdk 10.1.3、ngx-material-timepicker:5.5.2
Things I've tried and didn't work: Adding CommonModule to all of my child modules.我尝试过但没有奏效的事情:将 CommonModule 添加到我的所有子模块中。 Checking for template errors on Tables with dates.检查带有日期的表上的模板错误。 Searched entire app for key words in the error message like "selectedValue", "_selectedDate!"...etc.在整个应用程序中搜索错误消息中的关键字,例如“selectedValue”、“_selectedDate!”...等。 Deleted node modules and reinstall npm.删除节点模块并重新安装 npm。 Hours of research trying to find an answer.数小时的研究试图找到答案。
通过手动卸载 @angular-material-components/datetime-picker 并重新安装 4.0.5 版修复了我的构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.