Closed xkeshav closed 9 months ago
Same with simple-icons. Got it referenced in my Astro config and everything, even checked if I installed the package. Nothing.
Same with simple-icons. Got it referenced in my Astro config and everything, even checked if I installed the package. Nothing.
Yes. Tried that too. Now switched back to 0.8.2
I'm getting the same issue after updating to 1.0.0
.
Tried with additional Configuration from docs but it did nothing.
Guess it is time to switch back to 0.8.2
for now. 😞
I'm currently not spending a lot of time with web dev, but I'll try my best to try to replicate this soon!
I'm having this same issue while using pnpm
. But I have been able to resolve the issue by by moving all the @iconify-json/*
packages to dependencies
.
Some more context to the issue that I'm experiencing, when I run pnpm list --json
manually I see all three dependency sections.
[
{
...,
"dependencies": { ... },
"devDependencies": { ... },
"unsavedDependencies": { ... }
}
]
However when this package runs the command (loadIconifyCollections.ts#L102), text
doesn't contain the devDependencies
section.
[
{
...,
"dependencies": { ... },
"unsavedDependencies": { ... }
}
]
I haven't looked any further as to why there is a difference as moving the packages out of devDependencies
has resolved this for me
Please include a minimal reproduction! It's a required field because it's not possible for me to fix the issue if I'm not able to check what is going wrong with your specific setup.
I'll try to debug this with the information that's been shared so far.
@xkeshav you haven't included the mdi icon pack in your config like described at https://www.astroicon.dev/reference/configuration/#include. Maybe try that? I did that and I'm getting a different error than yours now (It looks like the "[pack]" set was not loaded. Did you install the "@iconify-json/[pack]" dependency?
)
@xkeshav you haven't included the mdi icon pack in your config like described at https://www.astroicon.dev/reference/configuration/#include. Maybe try that? I did that and I'm getting a different error than yours now (
It looks like the "[pack]" set was not loaded. Did you install the "@iconify-json/[pack]" dependency?
)
I have added; see package.json content I have shared.
also tried installing with dependency instead of devDependencies but didn't work
I was thinking about the include statement in the astro config, but that doesn't seem to fix it either. However I shared a (temporary) fix in #173!
That should go into your Astro config. Then my issue is a different one, because even after that it doesn't work.
Oh and don't forget to install the proper @iconify-json/*
pack. But still after that it doesn't work.
That should go into your Astro config. Then my issue is a different one, because even after that it doesn't work.
Yes, although normally it also checks for your packages without specificially telling the integration what icon packs to use. I think your issue is similiar to #173 / #165
What version of
astro-icon
are you using?1.0.0
Astro Info
If this issue only occurs in one browser, which browser is a problem?
chrome
Describe the Bug
when run npm run dev ; it runs but when access in chrome; it crashed with below error in terminal
What's the expected result?
it should render icon properly
earlier version 0.8.2 was working fine without adding icon in integration
Link to Minimal Reproducible Example
N/A