N
Nuxt3mo ago
Wontolla

`nuxt/storybook` does not work

nuxt/storybook has some big problems: - Installation (jsdoc-type-pratt-parser) - Rendering with the template - Suspense with nuxt/icon - Self-documentation In short, almost nothing works. I tried to find workarounds for every single problem and I can't get out of it. It's a dog chasing its tail. Can anyone point me to a version (even an old one) where everything more or less works? Or an alternative solution ES: don't use the nuxt module but vue-vite. The problem is that I don't know how to integrate it with Nuxt (eg: it requires the Vite setting) Thanks
5 Replies
Bombo
Bombo3mo ago
What? It seen well maintained I’m surprised
Wontolla
WontollaOP3mo ago
You can try it with a simple install
kogratte
kogratte3mo ago
Doesn't work either. They're many issues opened.
BinaryArtifex
BinaryArtifex2mo ago
yep. can confirm. that bloody jsdoc-type-pratt-parser led me to this thread. i literally took the starter example at https://github.com/nuxt-modules/storybook/blob/main/examples/starter/app.vue and copied it verbatim into a new nuxt installation...im a stubbed toe away from just going back to remix
GitHub
storybook/examples/starter/app.vue at main · nuxt-modules/storybook
Storybook integration with Nuxt. Contribute to nuxt-modules/storybook development by creating an account on GitHub.
BinaryArtifex
BinaryArtifex2mo ago
for me, adding this to my nuxt config's vite property did the trick
vite: {
optimizeDeps: {
include: ["storybook > @storybook/core > jsdoc-type-pratt-parser"],
},
},
vite: {
optimizeDeps: {
include: ["storybook > @storybook/core > jsdoc-type-pratt-parser"],
},
},
Want results from more Discord servers?
Add your server