diff --git a/packages/interactivity/src/vdom.ts b/packages/interactivity/src/vdom.ts index 2ab176b7acf0d..692fd0dffea27 100644 --- a/packages/interactivity/src/vdom.ts +++ b/packages/interactivity/src/vdom.ts @@ -106,7 +106,7 @@ export function toVdom( root: Node ): [ string | VNode | null, Node | null ] { namespaces.push( typeof value === 'string' ? value - : value?.namespace ?? null + : ( value as any )?.namespace ?? null ); } else { directives.push( [ n, ns, value ] );