-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: Icons does not render correctly with IconGallery addon with Vue3 #19550
Comments
I tried to import icons directly, but it present the same problem. The page does not render properly and there is no indication on the possible error from the server.
|
I have the same issue with Vue 3 |
Still relevant in SB7. I assume due to the |
@chakAs3 you have a pretty good handle on SB7 and Vue, is there any quick wins / workarounds here? |
My thinking was that it would be great if we could do something like this as a workaround
|
So heres a workaround.
Icon.stories.ts, here is just a valid CSF3 story file exporting some stories. |
Hi @blowsie how are doing ? can you explain me more, the constraint that you have and what you want to achieve, i pretty sure that will be relevant for others as well |
@chakAs3 as mentioned above My workaround here is to add the Icons to a giant story file and then use the In the end, users will end up here because the docs doesn't provide a full working solution. |
Oh. it is interesting, i never looked at mdx document, i see the issue, this will be always buggy as we only use Reat to write blocks and mdx docs, we planed to look if this and provide proper Vue mdx tool. |
Hi, folks. I'm sorry this bug has sat with MDX in Storybook was built on MDX 1, originally, which only supported React. Storybook 7 now uses MDX 2, which supports other renderers, like Vue, but Storybook's MDX implementation is still React-only, for now. And the Doc Blocks, like IconGallery, are designed for Storybook's MDX. The API reference linked above makes it clear that this only works with React. As this is intended (though unfortunate) behavior, and not a bug, I'm closing this issue. I'd encourage you to upvote and add your thoughts to this existing feature request: #7729 |
hello @kylegach , it doesn't work for me, and otherwise the following storybook-addon-vue-mdx wouldn't exist, would it ? thx, have a 🌞 |
Describe the bug
I am trying to implements Icons documentation through StoryBook 6.5.12 (Vue3, Vite) following the doc
All my icons are listed as component in a icons.vue file
When trying to Import them, the mdx page does not render properly.
System
Additional context
StoryBook is used in a Nuxt3 project
The text was updated successfully, but these errors were encountered: