diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 78f5c8693af..03f908b60df 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -1235,6 +1235,9 @@ function baseCreateRenderer( if (!initialVNode.el) { const placeholder = (instance.subTree = createVNode(Comment)) processCommentNode(null, placeholder, container!, anchor) + // This noramlly gets setup by the following `setupRenderEffect`. + // But the call is skipped in initial mounting of async element. + // Thus, manually patching is required here or it will result in a crash during parent component update. initialVNode.el = placeholder.el } return