withastro / compiler

The Astro compiler. Written in Go. Distributed as WASM.
Other
503 stars 59 forks source link

🐛 BUG: Cannot process svg in index.astro #981

Open GuoChen018 opened 8 months ago

GuoChen018 commented 8 months ago

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