Skip to content

Fragments are compiled with a space, which fails in TypeScript 5.7 #1053

@rktyt

Description

@rktyt

Astro Info

Astro                    v5.0.2
Node                     v20.15.0
System                   Linux (arm64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/node
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

<></> notation is reported as an error in npx astro check.

error ts(2604): Component '< >' is not a valid component.
If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.


There is no error in [email protected]

What's the expected result?

No errors

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-bhs7qr-52hbdf?file=package.json

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly improves performance (priority)feat: tsxRelated to the TSX output (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions