ASSERTION ERROR: This TNode does not belong to this TView. after angular update from v7.1 to v11
ASSERTION ERROR: This TNode does not belong to this TView. after angular update from v7.1 to v11
我已经将 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]
从 dynamic-table 组件中删除 #matrow 后解决了错误。
我已参考以下答案来解决问题。
https://github.com/angular/angular/issues/39779#issuecomment-731745128
我已经将 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]
从 dynamic-table 组件中删除 #matrow 后解决了错误。 我已参考以下答案来解决问题。
https://github.com/angular/angular/issues/39779#issuecomment-731745128