diff --git a/packages/runtime-dom/src/apiCustomElement.ts b/packages/runtime-dom/src/apiCustomElement.ts index eabe83b6b9f..aa5ae4b9a31 100644 --- a/packages/runtime-dom/src/apiCustomElement.ts +++ b/packages/runtime-dom/src/apiCustomElement.ts @@ -216,7 +216,7 @@ export class VueElement extends BaseClass { const resolve = (def: InnerComponentDef) => { const { props, styles } = def - const hasOptions = !isArray(props) + const hasOptions = props && !isArray(props) const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : [] // cast Number-type props set before resolve