From 9d5873e143a59ad9589b00acd537c7f62b9df540 Mon Sep 17 00:00:00 2001 From: Benson Cho <100653148+bcho892@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:21:42 +1200 Subject: [PATCH] fix storybook (#620) --- client/.storybook/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/.storybook/main.ts b/client/.storybook/main.ts index a748239ac..220ae3c23 100644 --- a/client/.storybook/main.ts +++ b/client/.storybook/main.ts @@ -1,4 +1,5 @@ import type { StorybookConfig } from "@storybook/nextjs" +import path from "path" const config: StorybookConfig = { stories: ["../src/**/*.story.@(js|jsx|ts|tsx)", "../src/**/*.story.mdx"], @@ -7,8 +8,12 @@ const config: StorybookConfig = { "@storybook/addon-essentials", "@storybook/addon-interactions" ], + // https://github.com/storybookjs/storybook/issues/21216#issuecomment-1513894759 framework: { - name: "@storybook/nextjs", + name: path.resolve( + require.resolve("@storybook/nextjs/preset"), + ".." + ) as any, options: {} }, docs: {