我已将 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]