Skip to content
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

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

Open
GuoChen018 opened this issue Mar 10, 2024 · 0 comments
Open

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

GuoChen018 opened this issue Mar 10, 2024 · 0 comments
Labels
needs triage Issue needs to be triaged

Comments

@GuoChen018
Copy link

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

@github-actions github-actions bot added the needs triage Issue needs to be triaged label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant