-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Nuxt 3 support #330
Comments
Is there any news or thoughts on this? I'd really love to use Storybook with Nuxt 3! |
Did you tried it with the Nuxt3 setup or the Bridge one? Do you mind submitting your findings here? https://isnuxt3ready.owln.ai/ |
Tried it with Nuxt3 Setup |
If anyone is running into this issue you can just use the vue3 storybook initializer. run I got the storybook up and running with the default stories in my nuxt3 project created using the nuxt3 setup linked above. unsure if theres any issues with doing this but atleast its running for me |
Main issues is that it doesn't load up nuxt modules. So, e.g. you install formkit module, you don't have formkit components auto-loaded. |
@Rigo-m did you already found the time to work on this? |
I've started to look into it. I'll wrap my head around it this weekend |
Has anyone managed to set it up manually with Nuxt 3? |
This link is not working (private video?) 😖 |
|
I've managed to set it up with the help of this video, although it feels really clunky. Because setting it up like this means that every plugin/module you add to nuxt has to be replicated in storybook configuration. |
Excited to see a solution that properly works with the nuxt3 rc 🥳 |
As storybook is the last feature missing for my migration to nuxt3, I would be interested in working on this as well. If you are interested, we can collaborate on this. |
The instructions outlined at #385 worked for me. Feedback welcome! |
specify that the app is using Vue3 then it will work with Nuxt3, tested on codesandbox and can confirm it works. ✔ |
Any update on this? I would really love to use Storybook in Nuxt 3. |
Hi y'all. Hope you are having a great summer. I'll have time to work on this next week since I'll be on vacation from my main job. @tobiasdiez If it's okay for you, I'll hit you up on monday to coordinate on this subject |
For anyone finding this thread, as of now :
Waiting for updates on this module! |
Any idea when a stable Nuxt 3 + Storybook version will be released? Waiting for this |
I'd recommend to check on the issues @Rigo-m kindly linked. Those are being waited for before work on this storybook module for Nuxt 3 compatibility continues. |
@Rigo-m - I think I can speak for all of us by saying 'thank you' for your hard work, time and energy towards this specific ask from the community. Just to clarify: is it both the historie issue and the nuxt/framework ticket that are blockers for moving forward? Are these the kind of things where more helping hands would be appreciated or is it more a matter of time and energy? If there are some of us (I'm raising my hand here) who could offer valid help, I'd love to do so. |
@Rigo-m, @kadumedim @weo3dev and anyone else willing to work on this. Following the approach outlined at #385, I've a working prototype with nuxt3 support at https://github.com/JabRef/JabRefOnline. It is generally working and has CI in place verifying the storybook (using Chromatic). I agree that currently it as quite hacky, but I feel this mostly comes from me lacking the necessary knowledge to convert it to a functional nuxt module. So if you want to help, I would propose we use this prototype as a working platform and migrate the "hacks" to a proper module there. Some beginnings can be found at https://github.com/JabRef/JabRefOnline/blob/main/modules/storybook.ts. Once this is completed, we can then easily push these changes to the PR #385. What do you think? |
The frustration of having more things breaking with the Vue 3 ecosystem is a mess. At this moment storybook is just not working with Nuxt Auto imports. |
I try to follow this steps: #385 But i recieve this error at starting nuxt:
Does anyone have an idea that it may be happening? I think the error occurs in the storybook: 6.5.13 I use vite instead webpack |
Quite curious what´s the status of this one. has anyone gotten a working setup going? |
Kind of a bummer, I love Storybook for creating components outside of the app, for me it's a superior way to work. I'm not sure I agree with auto imports being a good idea to begin with, but it's a horrible trade-off in regards to SB. I wonder if future me is going to come back to projects wasting time wondering where things are coming from. Global mixins were gross. I like explicit imports for their clarity. I'm always thinking about revisiting a project in 2 years when a client asks for improvements. |
The current state is still #330 (comment), at least from my perspective. Summary: there is a hacky solution that uses the nuxt pipeline to render the stories. It works but requires a lot of manual setup. Help is needed to integrate the hacks into a workable module that people can just install. |
@tobiasdiez Are those manual steps documented somewhere? Probably adding those steps to the docs would be some intermediate solution. |
Yes, it is more or less outlined at #385. I'm also currently experimenting with Storybook v7 and rendering the stories using the new experimental component islands (JabRef/JabRefOnline#1726 and JabRef/JabRefOnline#1728). This simplifies the setup quite a bit, so hopefully it's a step towards a proper reusable nuxt module. |
FYI, @danielroe is working on an approach over at https://github.com/danielroe/nuxt-vitest, and that may be another approach to the ones discussed above. |
@bmulholland , could you be more specific? What approach is he working on, and which files would be interesting to look at? |
Sorry, I don't know. He just mentioned it to me in this context. I spoke with him via the Nuxt Discord. Maybe you could DM him there to ask? |
Probably the video How to setup Storybook + Nuxt 3 + Tailwind CSS + Vite ? could be helpful for you guys as well. |
And in case you want to use pnpm, Turborepo, Vite, Vue3, Nuxt3 and Storybook the vue-turbo-starter repo could be interesting. Actually there are some other template repos as well vite-vue-ts-storybook, etc. |
Nice find! Had a quick look, really interesting 😄 |
maybe i did something wrong but this doesn't work for me |
Yep, same here, the auto import doesn't work |
|
For anyone still waiting for the official nuxt module, check this instead: https://storybook.js.org/addons/storybook-addon-nuxt An official module would be better? Yeah, somehow. But hey lets work with what we have. |
I think that module is Vite only? Ideally I'd like something that supports Webpack so I don't have to add Webpack -> Vite to the already-long list of transitions and upgrades we have to make along with the Nuxt 3 upgrade. |
Check zero config nuxt 3 support storybook https://github.com/storybook-vue/nuxt |
@productdevbook Would be cool to have Storybook support for Vue integration for Astro as well 🤩 Do you have this on your roadmap as well? |
I cant get the minimal repo running. I get:
Seems to be some module import issues. Also adding "type": "module" to the package.json did not work. |
is this issue still unresolved? please tell me. |
This core storybook Nuxt 3 preset now exists: https://github.com/storybook-vue/nuxt. |
Does this needs to be worked on then anymore? I see a $500 bounty on this. Seems like this is resolved? |
I believe this is resolved, yes. It needs to be confirmed by @drewbaker. |
@rishi-raj-jain I think this is resolved in that there is a another module to use instead of this one. I'm not sure what to do with the bounty on this then? I'll remove it. If anyone actually did work on this new module because of the bounty please email me [email protected] and I'll pay you. @danielroe I recommend this issue be closed. |
@drewbaker If you haven't done this already, may I suggest you reach out to @chakAs3 who has worked on this new storybook addon, and continues now also to work on the nuxt module here. I think he would be happy to receive a little thank you for his work. |
Is your feature request related to a problem? Please describe.
Storybook Module isn't running when installing it as described in the docs.
Running
npx nuxt storybook
leads to:Describe the solution you'd like
Module should run as we know it from Nuxt 2
The text was updated successfully, but these errors were encountered: