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
"Unable to locate X icon!" without restarting dev server #207
Comments
I can't get it to work even if I restart the dev server |
Same issue here, unfortunately. |
Same issue here but it don't work even if restarting the dev server. It loads small svgs with restarting the dev server, but big svgs are not recognized. |
Hmm, very odd. Thanks for the repro! I'll try to figure out what's going on here. Might need to add an explicit watcher for the |
Not sure if this is related but seems to be. But if I update my Astro Config to have a new icon. I have to restart the dev server for it to pick up that a new one is there. Otherwise, it says that it does not exist. Start the page and then in the config. Add a new icon and try to use it. |
also reporting the same issue! |
+1 Same thing happend to me, had to restart dev server everytime |
+1 |
1 similar comment
+1 |
What version of
astro-icon
are you using?v1.1.0
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
When adding a new entry to the
icons/
directory, I see an "unable to locate X icon!" error. Restarting the dev server resolves the issue. Strangely, this does not occur on initial installation or for the first icon added toicons/
. However, after restarting the dev server once and adding more additions toicons/
, the error appears.See stackblitz example below. Try copying a
.svg
entry under a new name and update the Icon inpages/index.astro
to reference it.What's the expected result?
Updates to
icons/
are detected while the dev server is running.Link to Minimal Reproducible Example
https://stackblitz.com/~/edit/github-ds52xs
The text was updated successfully, but these errors were encountered: