From: daiwei Date: Fri, 20 Jun 2025 02:40:31 +0000 (+0800) Subject: wip: fix e2e test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc2f9f873e2e963f15d69f781af4ea2d5dd94741;p=thirdparty%2Fvuejs%2Fcore.git wip: fix e2e test --- diff --git a/packages/runtime-vapor/src/block.ts b/packages/runtime-vapor/src/block.ts index 582b310452..1f38a3aad6 100644 --- a/packages/runtime-vapor/src/block.ts +++ b/packages/runtime-vapor/src/block.ts @@ -198,7 +198,7 @@ export function insert( performTransitionEnter( block, (block as TransitionBlock).$transition as TransitionHooks, - () => parent.insertBefore(block, anchor), + () => parent.insertBefore(block, anchor as Node), parentSuspense, ) } else { diff --git a/packages/runtime-vapor/src/vdomInterop.ts b/packages/runtime-vapor/src/vdomInterop.ts index 54d0d0624f..a0c851594e 100644 --- a/packages/runtime-vapor/src/vdomInterop.ts +++ b/packages/runtime-vapor/src/vdomInterop.ts @@ -259,7 +259,7 @@ function createVDOMComponent( internals.umt(vnode.component!, null, !!parentNode) } - vnode.scopeId = parentInstance.type.__scopeId! + vnode.scopeId = parentInstance && parentInstance.type.__scopeId! frag.insert = (parentNode, anchor, transition) => { const prev = currentInstance