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

.astro files don't treat a missing '>' as a syntax error #960

Open
1 task
cgsdev0 opened this issue Feb 3, 2024 · 1 comment
Open
1 task

.astro files don't treat a missing '>' as a syntax error #960

cgsdev0 opened this issue Feb 3, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@cgsdev0
Copy link

cgsdev0 commented Feb 3, 2024

Astro Info

Astro                    v4.3.2
Node                     v19.7.0
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I had a project where I was experiencing really strange behavior, and I noticed it was because I had an a tag with a missing > in a .astro file. This wasn't highlighted as an error in my editor, and it also wasn't reporting any errors or warnings when I built the project.

minimum repro:

  1. create a new project
  2. delete the > on line 12 in Card.astro

What's the expected result?

this should probably be raised as a syntax error, both in the editor and at build time.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-dxn5fq?file=src%2Fcomponents%2FCard.astro

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Feb 3, 2024
@cgsdev0
Copy link
Author

cgsdev0 commented Feb 3, 2024

just noticed this is probably better suited for https://github.com/withastro/compiler

let me know if i should re-create the issue there

@florian-lefebvre florian-lefebvre transferred this issue from withastro/astro Feb 4, 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