withastro/compiler

๐Ÿ› BUG: Cannot process svg in index.astro

GuoChen018 opened this issue ยท 0 comments

What version of @astrojs/compiler are you using?

4.3.7

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

I imported a svg into my public folder. However, when I added the svg to my index.astro, there are red lines over my entire index.astro file. The error says: "The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issuesastro(1000)"

Screenshot 2024-03-10 at 2 43 17 PM

But when I run "npm run dev", I can still see the illustrations show up.

image

Link to Minimal Reproducible Example

https://github.com/GuoChen018/digital-home.git