diff --git a/packages/frontend/.storybook/main.ts b/packages/frontend/.storybook/main.ts index af02901a1a..259afb962f 100644 --- a/packages/frontend/.storybook/main.ts +++ b/packages/frontend/.storybook/main.ts @@ -3,12 +3,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +import { createRequire } from 'node:module'; import { dirname, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import type { StorybookConfig } from '@storybook/vue3-vite'; import { type Plugin, mergeConfig } from 'vite'; import turbosnap from 'vite-plugin-turbosnap'; +const require = createRequire(import.meta.url); const _dirname = fileURLToPath(new URL('.', import.meta.url)); const config = {