-1

我已将 Angular 应用程序从 v7.1 更新到 v11,更新成功,但更新后出现以下错误。

ERROR Error: ASSERTION ERROR: This TNode does not belong to this TView. [Expected=> [object Object] == [object Object] <=Actual]
    at throwError (vendor.js:87491) [angular]
    at assertEqual (vendor.js:87432) [angular]
    at assertTNodeForTView (vendor.js:88968) [angular]
    at assertTNodeForLView (vendor.js:88963) [angular]
    at getNativeByTNode (vendor.js:89729) [angular]
    at getInsertInFrontOfRNodeWithNoI18n (vendor.js:94691) [angular]
    at getInsertInFrontOfRNode (vendor.js:94670) [angular]
    at appendChild (vendor.js:94730) [angular]
    at createContainerRef (vendor.js:99694) [angular]
    at createSpecialToken (vendor.js:118439) [angular]
    at createResultForNode (vendor.js:118421) [angular]
    at materializeViewResults (vendor.js:118470) [angular]
    at collectQueryResults (vendor.js:118490) [angular]
    at collectQueryResults (vendor.js:118517) [angular]
4

1 回答 1

0

从动态表组件中删除#matrow 后解决了错误。我已参考以下答案来解决此问题。

https://github.com/angular/angular/issues/39779#issuecomment-731745128

于 2020-12-01T06:43:43.080 回答