-
Notifications
You must be signed in to change notification settings - Fork 59
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: Invalid markup generates a runtime error #353
Comments
@natemoo-re any chance this one's hitting a corner case in the compiler? |
@godefroi I was able to get your example working by wrapping the return value in a fragment instead of a |
I was able to get the non-working example to work by changing the |
Looks like if the markup requires interpolation is invalid, the compiler fails. Seems that maybe static markup doesn't have the same compiler steps (validation step?) as dynamic markup. |
Nice sleuthing, @ryanfitzer! I took a stab at this one and I'm struggling to untangle where this is going wrong, but it looks like you're correct that mixing invalid HTML with expressions is the culprit. Somehow the trailing I'll keep working to track down a fix! |
Related to #432 |
Co-authored-by: Nate Moore <[email protected]>
I forgot to close this somehow, should've been closed by #921 |
What version of
astro
are you using?0.25.4
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
I am seeing an error attempting to render a very simple template. Support thread here: https://discord.com/channels/830184174198718474/958787462606495804
Minimal example linked below.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-rztbls?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: