简体   繁体   English

从 Angular 9 更新到 Angular 10 后出现构建错误:“无法绑定到 'selectedValue' 中的错误,因为它不是 'tbody' 的已知属性”

[英]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.

相关问题 角度错误:无法绑定到“x 属性”,因为它不是“x 元素”的已知属性,即使在将@Input 放入子组件之后也是如此 - 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 Angular 中的错误:无法绑定到“ngForOf”,因为它不是“div”的已知属性 - Error in Angular: Can't bind to 'ngForOf' since it isn't a known property of 'div' 角度错误:无法绑定到'ngForFrom',因为它不是'a'的已知属性 - Angular error : Can't bind to 'ngForFrom' since it isn't a known property of 'a' Angular 6指令错误-无法绑定到“ appClickEvent”,因为它不是“ button”的已知属性 - Angular 6 Directive Error - Can't bind to 'appClickEvent' since it isn't a known property of 'button' 在控制台中出现错误无法绑定到“ngif”,因为它不是 angular 应用程序中“div”的已知属性 - Getting error in console Can't bind to 'ngif' since it isn't a known property of 'div' in angular app 角度测试错误 - 无法绑定到“项目”,因为它不是“app-dropdown”的已知属性 - Angular Test error — Can't bind to 'items' since it isn't a known property of 'app-dropdown' Angular 2 * ngFor错误:无法绑定到“ menuitemtype”,因为它不是“ div”的已知属性 - Angular 2 *ngFor error: Can't bind to 'menuitemtype' since it isn't a known property of 'div' Angular 11 错误:无法绑定到“ngForOf”,因为它不是“tr”的已知属性 - Angular 11 error : Can't bind to 'ngForOf' since it isn't a known property of 'tr' NX / Angular IntelliSense 的 VSCode IntelliSense 错误“无法绑定到 'ngIf',因为它不是 'div' 的已知属性” - VSCode IntelliSense error with NX / Angular IntelliSense "Can't bind to 'ngIf' since it isn't a known property of 'div'" 错误 NG8002:无法绑定到“dataSource”,因为它不是“table”的已知属性。 在 MatDialog Angular 9 中 - error NG8002: Can't bind to 'dataSource' since it isn't a known property of 'table'. in MatDialog Angular 9
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM