-
Notifications
You must be signed in to change notification settings - Fork 8
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
Storybook V7 Support #38
Comments
@shinodkharim I've had a look into this and can't replicate the specific issue you have, but there does seem to be issues with Storybook v7 (which is still in beta currently). I'm using Once these are resolved I should be able to test Ill be working on this in my |
Storybook 7 is officially launched tomorrow. I too get this issue, will you be publishing a fix?
|
Thanks for linking that issue @blowsie, I have been trying to get decorator working with storybook 7 but with I'll keep my eye on that issue and hopefully get this working soon. |
Hi @NickMcBurney , please see my comments over here... |
Here is my working version with vue3 and vite |
Looks like you beat me to it. Good work. Glad I could help a little |
@shinodkharim you can try installing this version
Once Storybook publishes v7 (non-prerelease) I'll publish v3.0.0 (non-prerelease). |
New version published using
|
Hey @NickMcBurney, we found that using new setup function exported from @storybook/vue3 (sb7) as documented here has an issue, especially for addon authors. The issue is that the setup function can only be called once... see here This means that an addon author is not able to safely use this setup method, since once it is called in the preview.ts in the users storybook, it will break. I raised this with the storybook in team, here Hopefully we can make a nice workaround to this issue. |
Hey @blowsie, thanks for bringing this to my attention. Do have any examples of the issues caused/weird behaviour? I've not noticed anything when testing myself - but my tests are very simple and not a great representation of real-life uses. |
Note to anyone discovering this issue. With This import: import vueRouter from 'storybook-vue3-router' ...must be changed to: import { vueRouter } from 'storybook-vue3-router' Another thing to note is that, currently, version 3.0.0-next.2 seems to annihilate other existing Vue plugins making it unusable if you have a custom |
I've publish new 3.0.0 version with storybook 7 support. Also readme is updated explaining issue mentioned by @matthew-dean - I had this noted in PR but it must have been missed. |
I recently tried to upgrade to storybook7 and Vite but the package is giving this error- _No matching export in "node_modules/@storybook/vue3/dist/index.mjs" from import "app".
Below is my package.json
The text was updated successfully, but these errors were encountered: