简体   繁体   中英

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:

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.

I am using 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. Checking for template errors on Tables with dates. Searched entire app for key words in the error message like "selectedValue", "_selectedDate!"...etc. Deleted node modules and reinstall npm. Hours of research trying to find an answer.

通过手动卸载 @angular-material-components/datetime-picker 并重新安装 4.0.5 版修复了我的构建。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM