Error starting storybook after fresh install #30596
Unanswered
hemmersjschroeder
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
After (as a new user) installing storybook for the first time and trying to start it I get a consistent error. From what I can gather this is somehow related to maybe Docker and storybook trying to open a browser, I could just not find an answer on how to circumvent this.
Additional information
This is the error I get:
info => Starting manager..
info => Starting preview..
/var/www/html/node_modules/storybook/bin/index.cjs:23
throw error;
^
Error: spawn xdg-open ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn xdg-open',
path: 'xdg-open',
spawnargs: [ 'http://localhost:6006/' ]
}
This is the content of the main.js:
/** @type { import('@storybook/vue3-vite').StorybookConfig } /
const config = {
stories: [
"../stories/**/.mdx",
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/vue3-vite",
options: {},
},
};
export default config;
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions