Closed datsenkoboos closed 3 months ago
UPD: Downgrading nuxt
to 3.11.2 and @storybook-vue/nuxt
to 0.2.6 gets rid of errors when runnning pnpm storybook
, but results in the Context conflict
error when running pnpm dev
.
We have the same issues and it's extremely frustrating. If you figure out how to get storybook working properly please let me know!
@melvinprindustry The latest fixes seem to solve that problem. Wether you wait till the next release or just use the nightly build in the package.json.
"devDependencies": { ... "@nuxtjs/storybook": "npm:@nuxtjs/storybook@nightly", ... }
Solved it for me. Still got some other errors, but i can work. Those may occur through some finesse of the main app.
I've tried using the nightly build, and i'm getting these errors both locally and on CodeSandbox:
@marcooop @tobiasdiez What am i missing?
Remove the dependency "@storybook-vue/nuxt": "^8.1.5",
Thank you! The errors have been resolved. But my component isn't being rendered in the Storybook preview, it fails with this error:
Warnings are still present in the terminal:
What could be the issue?
@datsenkoboos Got the same error message like you :(
Try setting https://nuxt.com/docs/api/nuxt-config#runtime compiler to true.
Thanks @tobiasdiez If you set the runtimeCompiler to true
the [Vue warn] is gone.
But the two warnings are still there:
WARN Sourcemap for "/virtual:/@storybook/builder-vite/vite-app.js" points to missing source files 15:22:57
WARN Sourcemap for "/virtual:/@storybook/builder-vite/setup-addons.js" points to missing source files
These warnings are an issue with the upstream storybook packages (also appear in a pure vue-setting without nuxt).
Hi, i can't get the module to work either with a freshly initialized Nuxt app or with the example starter from the module repo. Here's what happens on a fresh Nuxt install:
Repoduction repo
Initialize a Nuxt app with
pnpm dlx nuxi@latest init
Run
pnpm dlx nuxi@latest module add storybook
Run
pnpm dev
and get the error:Storybook needs a "main.js" file
, even though the module docs say:Run
pnpm dlx storybook-nuxt init
Run
pnpm dev
and get the error:Run
pnpm storybook
and get the error:The entry point "vue" cannot be marked as external
Remove
@nuxtjs/storybook
from dependencies and update its version in devDependencies from 7.0.2 generated bystorybook-nuxt init
to 8.1.5 (see the commit)Run
pnpm dev
and get theContext conflict
errorRun
pnpm storybook
and the 'The entry point "vue" cannot be marked as external
error.Bump
@storybook-vue/nuxt
package version to 0.2.8 as stated in this commentRun
pnpm dev
and get the error:Could not resolve "#app/entry"
Run
pnpm storybook
and get the same errorI'm ready to provide additional info if needed.