You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to organize my icons I add them in a subfolder, but once I add a new SVG file, It's not detected by the Astro path as the module is not found the only solution is to restart the dev server
Note: I use inline SVG, I paste the code in .SVG file and use it like this
import { Icon } from 'astro-icon/components' <Icon name='product/CartSvg' width={24} height={24} />
The Folder looks like this
src/icons/**/*
Error: 02:04:58 [ERROR] Unable to locate "product/CartSvg" icon!
What's the expected result?
As I understand it should be detected and can be used without the need to restart every time I add a new SVG Icon.
What version of
astro-icon
are you using?"^1.0.2"
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I followed the guide from the docs
Here:
https://www.astroicon.dev/getting-started/
to organize my icons I add them in a subfolder, but once I add a new SVG file, It's not detected by the Astro path as the module is not found the only solution is to restart the dev server
Note: I use inline SVG, I paste the code in .SVG file and use it like this
import { Icon } from 'astro-icon/components'
<Icon name='product/CartSvg' width={24} height={24} />
The Folder looks like this
src/icons/**/*
Error: 02:04:58
[ERROR] Unable to locate "product/CartSvg" icon!
What's the expected result?
As I understand it should be detected and can be used without the need to restart every time I add a new SVG Icon.
Link to Minimal Reproducible Example
https://github.com/FairyPenguin/astro-reproduce
The text was updated successfully, but these errors were encountered: