Repository navigation
bun run storybook error details #61
Closed
rahulchauhan04
started this conversation in
General
Replies: 2 comments
|
Hey @rahulchauhan04, thanks for the report. Can you please using the LTS Node version (23) and reinstalling the packages and also |
0 replies
|
Closing this issue due to inactivity, feel free to reopen if anything comes up :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
@deebov added the details in context,
searches suggesting to install it using npm ...
Additional context
(base) rahul@Rahuls-Laptop ~/Developer/react (git)-[main]- % bun run storybook
$ storybook dev -p 6006 --no-open
storybook v9.0.15
SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: @storybook/nextjs-vite/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.
./node_modules/vite/dist/node/chunks/dep-CXCa-anf.js:18344
const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(esbuild_register_import_meta_url));
^
SyntaxError: Identifier '__dirname' has already been declared
at internalCompileFunction (node:internal/vm:128:18)
at wrapSafe (node:internal/modules/cjs/loader:1279:20)
at Module._compile (node:internal/modules/cjs/loader:1331:27)
at extensions..js (./node_modules/esbuild-register/dist/node.js:4840:15)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object. (./node_modules/vite/dist/node/index.js:2:696)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
More info:
Broken build, fix the error above.
You may need to refresh the browser.
✔ Would you like to help improve Storybook by sending anonymous crash reports? … yes
error: script "storybook" exited with code 1
(base) rahul@Rahuls-Laptop ~/Developer/react (git)-[main]- %
All reactions