答案 0 :(得分:0)
@angular\cdk\__ivy_ngcc__\fesm2015
add a try()catch() on material table.ts
ngOnDestroy() {
this._rowOutlet.viewContainer.clear();
try{
this._noDataRowOutlet.viewContainer.clear();
}catch{}
this._headerRowOutlet.viewContainer.clear();
this._footerRowOutlet.viewContainer.clear();
this._cachedRenderRowsMap.clear();
this._onDestroy.next();
this._onDestroy.complete();
if (isDataSource(this.dataSource)) {
this.dataSource.disconnect(this);
}
}