You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I toyed around with Svelte in the previous iteration. Wanted to start a new project with Svelte 5 and found out that SvelteKit and the sv tool is the new thing. So I did.
Went through the little wizard and set up my project with Storybook, among other things. Looks like it installs fine (albeit with a few warnings that may be related to Homebrew-governed modules vs. project-specific modules?)
(node:17328) ExperimentalWarning: CommonJS module /opt/homebrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /opt/homebrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:17366) ExperimentalWarning: CommonJS module /opt/homebrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /opt/homebrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Either way, I get the "Storybook was successfully installed in your project! 🎉" message, so I proceed to run yarn run storybook which yields this error:
$ yarn run storybook
yarn run v1.22.19
$ storybook dev -p 6006
@storybook/core v8.4.7
SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: ./.storybook/main.js.
Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
If you believe this is a bug, please open an issue on Github.
SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: ./node_modules/@storybook/addon-svelte-csf/dist/preset.js.
Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
If you believe this is a bug, please open an issue on Github.
Error [ERR_MODULE_NOT_FOUND]: Cannot find module './node_modules/@storybook/addon-svelte-csf/dist/utils/identifier-utils' imported from ./node_modules/@storybook/addon-svelte-csf/dist/compiler/pre-transform/codemods/legacy-story.js
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:932:10)
at defaultResolve (node:internal/modules/esm/resolve:1056:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:650:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:599:25)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:349:53)
at new ModuleJobSync (node:internal/modules/esm/module_job:338:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:409:11)
at new ModuleJobSync (node:internal/modules/esm/module_job:338:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:409:11)
More info:
at loadPreset (./node_modules/@storybook/core/dist/common/index.cjs:16477:13)
More info:
at loadPreset (./node_modules/@storybook/core/dist/common/index.cjs:16477:13)
at async Promise.all (index 1)
at async loadPresets (./node_modules/@storybook/core/dist/common/index.cjs:16487:55)
at async getPresets (./node_modules/@storybook/core/dist/common/index.cjs:16520:11)
at async buildDevStandalone (./node_modules/@storybook/core/dist/core-server/index.cjs:37145:11)
at async withTelemetry (./node_modules/@storybook/core/dist/core-server/index.cjs:35757:12)
at async dev (./node_modules/@storybook/core/dist/cli/bin/index.cjs:2591:3)
at async s.<anonymous> (./node_modules/@storybook/core/dist/cli/bin/index.cjs:2643:74)
WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
WARN Failed to load preset: {"type":"presets","name":"/Users/jc/code/kartoffel/kartoffel/node_modules/@storybook/addon-svelte-csf/dist/preset.js"} on level 1
Error [ERR_MODULE_NOT_FOUND]: Cannot find module './node_modules/@storybook/addon-svelte-csf/dist/utils/identifier-utils' imported from ./node_modules/@storybook/addon-svelte-csf/dist/compiler/pre-transform/codemods/legacy-story.js
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:932:10)
at defaultResolve (node:internal/modules/esm/resolve:1056:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:650:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:599:25)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:349:53)
at new ModuleJobSync (node:internal/modules/esm/module_job:338:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:409:11)
at new ModuleJobSync (node:internal/modules/esm/module_job:338:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:409:11)
(node:22888) ExperimentalWarning: CommonJS module /Users/jc/code/kartoffel/kartoffel/node_modules/@storybook/core/dist/common/index.cjs is loading ES Module /Users/jc/code/kartoffel/kartoffel/node_modules/@storybook/addon-svelte-csf/dist/preset.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Steps to reproduce the behavior
npx sv create kartoffel
Fill out the wizard (I tried both Typescript and JS, and both yarn and npm as package managers)
yarn run storybook / npm run storybook
Look at that error
Expected behavior
I had expected the script to give me an URL to open the Storybook application.
Screenshots and/or logs
N/A
Environment
OS: Mac OS Sonoma 14.3.1
Node.js version: v23.1.0 (Homebrew)
NPM version: 10.9.0
Device (if applicable): MacBook Pro M2
Additional context
Thanks for taking the time to read my bug report :)
The text was updated successfully, but these errors were encountered:
Describe the bug
I toyed around with Svelte in the previous iteration. Wanted to start a new project with Svelte 5 and found out that SvelteKit and the
sv
tool is the new thing. So I did.Went through the little wizard and set up my project with Storybook, among other things. Looks like it installs fine (albeit with a few warnings that may be related to Homebrew-governed modules vs. project-specific modules?)
Either way, I get the "Storybook was successfully installed in your project! 🎉" message, so I proceed to run
yarn run storybook
which yields this error:Steps to reproduce the behavior
npx sv create kartoffel
yarn
andnpm
as package managers)yarn run storybook
/npm run storybook
Expected behavior
I had expected the script to give me an URL to open the Storybook application.
Screenshots and/or logs
N/A
Environment
Additional context
Thanks for taking the time to read my bug report :)
The text was updated successfully, but these errors were encountered: