Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running storybook in dev mode locally #2993

Closed
2 tasks done
djm158 opened this issue Dec 2, 2024 · 0 comments · Fixed by #2994
Closed
2 tasks done

Error running storybook in dev mode locally #2993

djm158 opened this issue Dec 2, 2024 · 0 comments · Fixed by #2994
Assignees
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@djm158
Copy link
Contributor

djm158 commented Dec 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Victory version

latest

Code Sandbox link

No response

Bug report

Running pnpm storybook:dev locally fails due to the following error:

SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: @storybook/react-webpack5/preset.

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: Cannot find module '@storybook/react-webpack5/preset'
Require stack:
- /Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/@storybook[email protected]/node_modules/@storybook/core/dist/common/index.cjs
- /Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/[email protected]/node_modules/storybook/dist/proxy.cjs
- /Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/[email protected]/node_modules/storybook/bin/index.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._resolveFilename (/Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/[email protected][email protected]/node_modules/esbuild-register/dist/node.js:4794:36)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at interopRequireDefault (/Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/@storybook[email protected]/node_modules/@storybook/core/dist/common/index.cjs:11666:11)
    at getContent (/Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/@storybook[email protected]/node_modules/@storybook/core/dist/common/index.cjs:16436:10)
    at loadPreset (/Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/@storybook[email protected]/node_modules/@storybook/core/dist/common/index.cjs:16442:51)
    at /Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/@storybook[email protected]/node_modules/@storybook/core/dist/common/index.cjs:16488:24
    at Array.map (<anonymous>)

More info:

    at loadPreset (/Users/djm/Library/Caches/pnpm/dlx/x6lev33jaseh2jcerd6yyuj4ly/193887ba168-8f6c/node_modules/.pnpm/@[email protected]/node_modules/@storybook/core/dist/common/index.cjs:16477:13)

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

Steps to reproduce

1. Clone repo locally
2. pnpm install
3. pnpm storybook:dev

Expected behavior

Storybook should open in the browser

Actual behavior

Storybook fails to load due to build error

Environment

- Device: Mac
- OS: 15.1.1
- Node: v20.11.1
- pnpm: 9.13.0
@djm158 djm158 added the Type: Bug 🐛 Oh no! A bug or unintentional behavior label Dec 2, 2024
@djm158 djm158 self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant