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

Encountering '[nuxt] instance unavailable' Error When Running with 'storybook build'. #102

Closed
Gre212 opened this issue Apr 19, 2024 · 2 comments

Comments

@Gre212
Copy link

Gre212 commented Apr 19, 2024

Objective:
I aim to generate static files using npx storybook build.

Issue:
Upon examining the built files, I consistently encounter the [nuxt] instance unavailable error.

Commands Executed:

$ npx storybook build
$ npx http-server storybook-static

Additional Context:
I can access Storybook when launching it alongside Nuxt3 using npm run dev.

I would greatly appreciate any guidance or insights on how to resolve this error and successfully generate static files with Storybook.

@cheyer
Copy link

cheyer commented May 19, 2024

I am experiencing the same issue described here.
We have a story involving a menu component that uses NuxtLink internally. When running Storybook in development mode with npm run storybook, everything works perfectly, and the story renders without any issues.
However, upon building Storybook for deployment on GitHub Pages using npm run build-storybook, I encounter the Error: [nuxt] instance unavailable message for the same story.
I guess this is also related to #97

@tobiasdiez
Copy link
Collaborator

Duplicate of #97

@tobiasdiez tobiasdiez marked this as a duplicate of #97 Jun 1, 2024
@tobiasdiez tobiasdiez closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants