Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae6be3a

Browse files
committed
fix: sb windows path
1 parent 24d0e1c commit ae6be3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev-server-storybook/src/shared/config/readStorybookConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function readStorybookConfig(
7070
}
7171

7272
const mainJs = commonJsMainExists
73-
? validateMainJs((await import(commonJsMainPath)).default)
73+
? validateMainJs((await import(pathToFileURL(commonJsMainPath).href)).default)
7474
: validateMainJs((await import(pathToFileURL(mainJsPath).href)).default);
7575

7676
return {

0 commit comments

Comments
 (0)