-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Missing icon packs #29
Comments
Thanks for opening an issue! I'm thinking through how to version the service without breaking anyone... do you know which version of |
I need version |
I would like to see this updated too. There are actually quite a few icons missing from our current set vs upstream's current set. It looks like the version used here seems to be about 6 months old. @natemoo-re I believe that they update the upstream repo quite a bit ( |
Mhhh… |
Is there any update on the issue or a roadmap? Thanks |
@natemoo-re I just stumbled upon this issue as well. I'm not aware of the original decision behind the service but is the service necessary? To bypass the versioning issue, would it make more sense to make Alternatively, maybe we could lean on a CDN such as Skypack to handle the versioning request or unpkg for us and allow the service to accept a version range and pass it along to the CDN? (eg. |
I'm another one that just stumbled over this and have finally an explanation why some icons just wouldn't work. I am in favor of @stramel's suggestion of making this a peer dependency, letting the individual applications manage the version of |
Same problem here is there any quick fix? |
@DJOCKER-FACE My quick fix is to download the icons as SVG and use them as local icons. |
@zaha @DJOCKER-FACE I forked and did a quick implementation using the updated tooling and You can try it out using: npm install -D 'https://gitpkg.now.sh/stramel/astro-icon/packages/core?main'
npm install @iconify/json @natemoo-re @matthewp Let me know if you want me to clean it up and submit a PR (main...stramel:astro-icon:main) |
* New: Add Emoji component A fork of `astro-icon` had to be used as workaround for natemoo-re/astro-icon#29.
* Chore: Change astro-icon package A fork of `astro-icon` had to be used as workaround for natemoo-re/astro-icon#29.
Thank you very much for coming up with a solution! While newer icon packs now work with the dev server running locally, Vercel still seems to have problems as I now get the error
|
@SenseiMarv So I dug into this a bit today. The issue is that with the Vercel serverless functions, they don't deploy I'm looking into solutions currently as this would affect all serverless functions that don't have access to the |
* WIP: Test deploying older icons This is a test commit to check whether older icons can work with the Vercel serverless function. This is related to natemoo-re/astro-icon#29 (comment).
Good research! So, the issue in the deployment is actually not related to this issue. I tried to deploy using only icon sets that were existing in the old One note about switching to the static adapter:
|
@SenseiMarv I was able to get it up and working on Vercel. https://astro-icon-test-qjvhzptnd-stramel.vercel.app/ Huge thanks to @JuanM04 for the PR in the Vercel adapter to make this work. Once the changes in withastro/astro#5085 have been merged, you should be able to do: adapter: vercel({
includeFiles: [
// replace the path below with path to the correct icon pack you want to include
'./node_modules/@iconify/json/json/heroicons.json',
]
}) You can also test now with the |
What is actually the advantage of having a custom API, as opposed to using Iconify's API directly? @natemoo-re why did you choose to create an API? I've tried to create a small subset of this package without an own api: manuelmeister/astro-iconify and it works exactly the same, but without an intermediary api. Could this also be a way forward? (Of course we would need to support the old v1 api as well, now that we have introduced it) Or would it be best if everyone had to use the iconify-json package as peer dependency if they want to use all packs without including the individual packs? |
Any updates on this? Would be cool to use https://icones.js.org/collection/heroicons 👍 |
Updated the `astro-icon` package because many icon packs aren't avaibile I found this work around from their issue page and applied it: natemoo-re/astro-icon#29 (comment)
Related: #73 Why? because |
@nimser Did you make sure to install I was able to successfully reference |
@stramel Can you please share the correct way to add this to the Astro config? |
This should explain it https://github.com/natemoo-re/astro-icon/blob/950f8a56a6493891ec5539a885e438b74965e3dc/packages/core/README.md |
Thanks. When I add
Then I try adding "allowImportingTsExtensions": true, to tsconfig but get the following
Any help much appreciated |
@csjui Sorry, I must have missed this comment in my notifications! The error you are receiving is due to using the v0 astro-icon as the v1. Please ensure that you have installed the latest code |
@stramel indeed I was missing porper conf. Works great now after a fresh install of |
Hey, first of all, thanks for making this, this makes working with icons much easier for me.
Would it be possible to update
@iconify/json
?astro-icon/packages/service/package.json
Lines 21 to 25 in d2e7faf
I want to use an icon added in a newer version of a pack but
@iconify/json
is not on the latest version here.The text was updated successfully, but these errors were encountered: