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: [TSX] Unclosed tag result in unnecessary escaping #862

Open
Princesseuh opened this issue Sep 8, 2023 · 0 comments · Fixed by #1023 · May be fixed by #992
Open

🐛 BUG: [TSX] Unclosed tag result in unnecessary escaping #862

Princesseuh opened this issue Sep 8, 2023 · 0 comments · Fixed by #1023 · May be fixed by #992
Assignees
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) feat: tsx Related to the TSX output (scope)

Comments

@Princesseuh
Copy link
Member

What version of @astrojs/compiler are you using?

2.1.0

What package manager are you using?

pnpm

What operating system are you using?

macOS

Describe the Bug

The following code:

<div></div>

<div class="something"

results in the following TSX:

<Fragment>
<div></div>{`

<div class="fdsfs"
`}
</Fragment>

Not quite sure why it does that, but it breaks type checking and completions (which can work even on a malformed tag). Closing the tag <div class="fdsfs"> will fix it, but since this is editor tooling, you shouldn't have to.

Link to Minimal Reproducible Example

See description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) feat: tsx Related to the TSX output (scope)
Projects
None yet
2 participants