From ecf6fd5a5243eabbb1a149d52a3a3b1a086b4601 Mon Sep 17 00:00:00 2001 From: suiiii Date: Wed, 8 Jan 2025 16:08:33 +0100 Subject: [PATCH] fix: Add node option to fix storybook module loading Starting with node v22.11 and on node v23 storybook cannot build due to a module loading error. Somehow file extensions are not rendered and cannot be found. Refs: storybookjs/addon-svelte-csf#252 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 61b698a..db24989 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "test:unit": "vitest", "lint": "prettier --check . && eslint .", "format": "prettier --write .", - "storybook": "storybook dev -p 6006 --no-open", - "build-storybook": "storybook build", + "storybook": "NODE_OPTIONS=--no-experimental-require-module storybook dev -p 6006 --no-open", + "build-storybook": "NODE_OPTIONS=--no-experimental-require-module storybook build", "postinstall": "wagmi generate" }, "devDependencies": {