Skip to content
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

Nuxt3 nuxt-modules/icon custom icons not showing #718

Open
6 tasks done
letoast opened this issue May 7, 2024 · 2 comments
Open
6 tasks done

Nuxt3 nuxt-modules/icon custom icons not showing #718

letoast opened this issue May 7, 2024 · 2 comments
Labels
to triage This issue needs to be triaged

Comments

@letoast
Copy link

letoast commented May 7, 2024

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

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz
    Memory: 83.14 GB / 127.92 GB
  Binaries:
    Node: 18.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.6.11 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Chrome: 124.0.6367.119
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.19041.3636

Used Package Manager

yarn

Validations

@letoast letoast added the to triage This issue needs to be triaged label May 7, 2024
Copy link

stackblitz bot commented May 7, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@letoast letoast changed the title Nuxt nuxt-modules/icon custom icons not showing Nuxt3 nuxt-modules/icon custom icons not showing May 8, 2024
@letoast
Copy link
Author

letoast commented May 8, 2024

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 #710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant