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

Fragment shorthand error when using <= condition #7810

Closed
1 task
MKlblangenois opened this issue Jul 26, 2023 · 1 comment
Closed
1 task

Fragment shorthand error when using <= condition #7810

MKlblangenois opened this issue Jul 26, 2023 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@MKlblangenois
Copy link
Contributor

What version of astro are you using?

2.9.3

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn

What operating system are you using?

Mac

What browser are you using?

Brave

Describe the Bug

Got the error Unable to assign attributes when using <> Fragment shorthand syntax when I try to use "Less than or Equal to" (<=) syntax to render DOM element. When I invert condition with >=, this work. Adding parentheses doesn't change result

VSCode view :
Capture d’écran 2023-07-26 à 10 39 21

What's the expected result?

Get my condition working in both ways

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-rtgen9?file=src%2Fpages%2Findex.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 Jul 26, 2023
@Princesseuh
Copy link
Member

Duplicate of withastro/compiler#723

@Princesseuh Princesseuh marked this as a duplicate of withastro/compiler#723 Jul 27, 2023
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

2 participants