Icon components unresolvable? #379
davidwebca
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I was using vite-svg-loader before, but I wanted to cleanup my sfc files by enabling auto imports on everything that I could, so I tried to switch to unplugin-icons.
I wanted to resolve icons this way because I need to resolve them dynamically, but somehow I'm not able to resolve them in the <script setup> part. The icons render render correctly. Just to be clear, this is a custom collection with the file resolver.
If I try to use them directly:
It doesn't work. And if I try to import them directly:
It does't work either... to me it seems like ~icons is not resolved at all in this case, but it could be indicative of what's going wrong, maybe in my config 🤔
Here's my config, if anyone sees what's wrong, let me know... (is AutoImport's config the problem? 🤔 )
Beta Was this translation helpful? Give feedback.
All reactions