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
Uninformative error message: 'Expected ">" but found "class"' #10784
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: errors
Related to error handling / messages (scope)
Comments
Running node with |
Bun --verbose helps
|
NPM --verbose doesn't help. |
You cannot have JSX in the frontmatter in Astro, the frontmatter is only JavaScript. |
bluwy
added
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: errors
Related to error handling / messages (scope)
and removed
needs triage
Issue needs to be triaged
labels
Apr 15, 2024
Marked as p2 as it might be worth investigating improving the error message. I'm not sure if it's coming from the Astro compiler or esbuild. I know esbuild is able to emit the code trace. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: errors
Related to error handling / messages (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When running astro build it fails, and the only message I get is
Expected ">" but found "class"
What's the expected result?
Fine error message containing file name, line number and reason of the problem.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-vx3bzp?file=src%2Fpages%2Fproperties.astro&view=editor
Participation
The text was updated successfully, but these errors were encountered: