natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
1.01k stars 57 forks source link

Google Material Symbols not Found #60

Closed HritikR closed 1 year ago

HritikR commented 1 year ago

Code : <Icon name="material-symbols:10k" />

Error: Not Found: pack "material-symbols"
    at request (/node_modules/astro-icon/lib/resolver.ts:17:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Nikola-Milovic commented 1 year ago

How did you resolve this? Is there some shorthand name or something?

HritikR commented 1 year ago

@Nikola-Milovic The Astro-Icon API lacks a large number of icon packs because they have been using old version of iconify. I had to develop my own API which uses latest version of Iconify. I created the API and integrated it into fork of Astro-icon. Here are my repos: astrodev-api and astro-icon fork Edit: You can use now astro-iconify by @manuelmeister which supports all icon packs.

ChrisChinchilla commented 1 year ago

@HritikR and @manuelmeister I started using the iconify fork, but there's no issue tracker there… That fork seems to be affected by this issue https://github.com/natemoo-re/astro-icon/issues/65 and I couldn't get the workaround to work, any ideas?