diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 763974adfb4e..f020b78e8a85 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -224,7 +224,7 @@ if (typeof HTMLElement === 'function') { } export class SvelteComponent { - $$: T$$; + $$: T$$ = {} as T$$; $$set?: ($$props: any) => void; $destroy() {