Open letoast opened 6 months ago
Start a new pull request in StackBlitz Codeflow.
Using @juleshry 's PR seems to fix this issue. It looks like the problem is the mocking of useNuxtApp which nuxt-icon uses as a plugin https://github.com/histoire-dev/histoire/pull/710
I am encountering the same issue (although with another dependency leaning on useNuxtApp), unfortunately the changes from the PR (#710) only work in my project if I ONLY comment out the following code: nuxt.hook('imports:sources' // etc..
, NOT if I remove the following line { src: join(runtimeDir, 'composables.mjs'), filename: 'histoire/composables.mjs' },
.
Perhaps #750 could be a more agreeable option? Regardless of the chosen solution, I assume many people will encounter this problem at some point. This potentially also plays a role in issues https://github.com/histoire-dev/histoire/issues/668, https://github.com/histoire-dev/histoire/issues/701 and #746
Is there someone - preferably a maintainer - who could shed some light on this? That would be great.
Describe the bug
Similar to #590, the custom icon that is a .vue template inside /components/global isn't loaded.
Reproduction
Add nuxt-modules/icon and Histoire, add a custom .vue component in /components/global and try to use it
https://stackblitz.com/edit/histoire-nuxt3-starter-j5v2es?file=components%2FTestIcon.story.vue
System Info
Used Package Manager
yarn
Validations