From f4863524d7e5ca0f25470808849c24a72bea000a Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 8 Sep 2024 09:56:56 +0900 Subject: [PATCH] Update preview.ts --- packages/frontend/.storybook/preview.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/.storybook/preview.ts b/packages/frontend/.storybook/preview.ts index d000a28232..db095f7025 100644 --- a/packages/frontend/.storybook/preview.ts +++ b/packages/frontend/.storybook/preview.ts @@ -13,6 +13,7 @@ import locale from './locale.js'; import { commonHandlers, onUnhandledRequest } from './mocks.js'; import themes from './themes.js'; import '../src/style.scss'; +import { DI } from '../src/di.js'; const appInitialized = Symbol(); @@ -77,6 +78,7 @@ queueMicrotask(() => { return; } app[appInitialized] = true; + app.provide(DI.serverMetadata, {}); // TODO loadTheme(applyTheme); components(app); directives(app);