Skip to content

Commit

Permalink
fix: Add node option to fix storybook module loading
Browse files Browse the repository at this point in the history
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
  • Loading branch information
suicide committed Jan 8, 2025
1 parent c8e63cc commit ecf6fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit ecf6fd5

Please sign in to comment.