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鈥檒l 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 路 May be fixed by #992
Open

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

Princesseuh opened this issue Sep 8, 2023 · 0 comments 路 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

@Princesseuh Princesseuh added feat: tsx Related to the TSX output (scope) - P3: minor bug An edge case that only affects very specific usage (priority) labels Sep 8, 2023
@MoustaphaDev MoustaphaDev self-assigned this Dec 19, 2023
@natemoo-re natemoo-re linked a pull request Apr 2, 2024 that will close this issue
3 tasks
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
Development

Successfully merging a pull request may close this issue.

2 participants