core.js:4197错误TypeError:无法读取未定义Angular 10的属性'parentNode'

时间:2020-08-31 11:27:15

标签: angular typescript angular10

将项目从angular 7.2迁移到angular 10后,控制台出现错误。

core.js:4197 ERROR TypeError: Cannot read property 'parentNode' of undefined
at EmulatedEncapsulationDomRenderer2.parentNode (dom_renderer.ts:177)
at InjectableAnimationEngine.AnimationRendererFactory.engine.onRemovalComplete (animation_renderer.ts:37)
at TransitionAnimationEngine.AnimationEngine._transitionEngine.onRemovalComplete (animation_engine_next.ts:35)
at TransitionAnimationEngine._onRemovalComplete (transition_animation_engine.ts:551)
at TransitionAnimationEngine.removeNode (transition_animation_engine.ts:752)
at InjectableAnimationEngine.onRemove (animation_engine_next.ts:70)
at BaseAnimationRenderer.removeChild (animation_renderer.ts:175)
at BusyDirective.set (busy.directive.ts:57)
at setInputsForProperty (core.js:8648)
at elementPropertyInternal (core.js:7693)

0 个答案:

没有答案