-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
status: good first issueGood for newcomersGood for newcomersstatus: help wantedGood idea, but the core developers will not work on it at the momentGood idea, but the core developers will not work on it at the momenttype: documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Environment
- Operating System: Linux
- Node Version: v18.20.3
- Nuxt Version: 3.13.2
- CLI Version: 3.14.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
Reproduction
https://stackblitz.com/edit/nuxt-starter-yo3hjv
Describe the bug
In the docs you say:
Installation:
Install @nuxtjs/storybook dependency to your project:
npx nuxi@latest module add storybook
Add it to your modules section in your nuxt.config:
export default defineNuxtConfig({
modules: ['@nuxtjs/storybook'],
})
That's it! You can now use Storybook in your Nuxt app ✨
It's not true. It doesnt'work
Error
ERROR No configuration files have been found in your configDir: /Users/lucabortolussi/Projects/website-v3/.storybook. nuxt:storybook:build 12:28:45 PM
Storybook needs a "main.js" file, please add it.
You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.
More info: https://storybook.js.org/docs/configure
Storybook needs a "main.js" file, please add it.
You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.
More info: https://storybook.js.org/docs/configure
at validateConfigurationFiles (node_modules/@storybook/core/dist/common/index.js:139226:11)
at async loadMainConfig (node_modules/@storybook/core/dist/common/index.js:140361:3)
at async buildDevStandalone (node_modules/@storybook/core/dist/core-server/index.js:48532:11)
at async withTelemetry (node_modules/@storybook/core/dist/core-server/index.js:47133:12)
at async setupStorybook (node_modules/@nuxtjs/storybook/dist/module.mjs:54:18)
WARN Broken build, fix the error above.
You may need to refresh the browser.
ERROR [unhandledRejection] No configuration files have been found in your configDir: /Users/lucabortolussi/Projects/website-v3/.storybook.
Storybook needs a "main.js" file, please add it.
You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.
More info: https://storybook.js.org/docs/configure
Storybook needs a "main.js" file, please add it.
You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.
More info: https://storybook.js.org/docs/configure at validateConfigurationFiles (node_modules/@storybook/core/dist/common/index.js:139226:11)
MrManny
Metadata
Metadata
Assignees
Labels
status: good first issueGood for newcomersGood for newcomersstatus: help wantedGood idea, but the core developers will not work on it at the momentGood idea, but the core developers will not work on it at the momenttype: documentationImprovements or additions to documentationImprovements or additions to documentation