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: LD+JSON throws errors in .astro template #513

Closed
thdoan opened this issue Apr 23, 2023 · 2 comments · Fixed by #669
Closed

🐛 BUG: LD+JSON throws errors in .astro template #513

thdoan opened this issue Apr 23, 2023 · 2 comments · Fixed by #669

Comments

@thdoan
Copy link

thdoan commented Apr 23, 2023

Describe the Bug

Currently the following code throws a bunch of errors in an .astro template:

<script type="application/ld+json">
{ ... }
</script>

image

What is the best way to add this right now?

Steps to Reproduce

  1. Open an .astro file in VS Code
  2. Add site data in <script type="application/ld+json"> tag
  3. Errors are displayed (see screenshot above)
@thdoan
Copy link
Author

thdoan commented Apr 23, 2023

Found out you can do this, which also gets rid of the errors: withastro/astro#3544 (comment)

@thdoan thdoan closed this as completed Apr 23, 2023
@natemoo-re
Copy link
Member

Reopening because there was another request for this on Discord. I’m assuming the would be fairly easy to support with Volar these days?

@natemoo-re natemoo-re reopened this Sep 24, 2023
goulvenclech added a commit to goulvenclech/astro-language-tools that referenced this issue Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants