-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
NuxtIcon not rendered in Histoire #668
Comments
Same here. I found two issues.
My workaround was to add a stub of the vueApp.component in the useNuxtApp composable stub of histoire. Or add guard code for vueApp.component access from NuxtIcon Side. If we could override useNuxtApp stub, it would be nice for these problems |
Thanks for the fix, @Akryum! |
It's published in
@positiveprogrammer Can you elaborate on how you did that? |
You can find stub of composables in histoire/plugin-nuxt/runtime/composables.mjs You could change the stub like the one below. Just skip the exception |
Hi all, thanks for the great lib. |
@MaksymOsovitnii I found 2 issues; the Histoire team already fixed the first one, and the second issue is a little bit ambiguous since NuxtIcon tries to access vueApp to add NuxtIcon as a global component. Still, Histoire is stubbing useNuxtApp composable that doesn't have access to vueApp and components. You can take a look at nuxt-icon/dist/runtime/Icon.Vue |
@positiveprogrammer , thank you! Now it's clear to me. |
@positiveprogrammer where/how do i have to do the changes to get that running? I do not understand it. When there is an official plugin for nuxt i would expect the module to work |
MIght be releated: #746 |
Describe the bug
After having a lot of trouble trying to get Storybook running in my nuxt project, I figured I give histoire a try.
But unfortunately I'm running in a lot of problems as well.
One of them is the
<NuxtIcon />
is just not rendered at all, but working fine in the nuxt app.Reproduction
https://github.com/lud-hu/nuxt-histoire-reproduction
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: