Skip to content

maxpatiiuk/typescript-printer-tsx-syntax-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript bug: printer introduces syntax error in .tsx files

This repository is a reproduction for a TypeScript bug

Reproduction

  1. Clone this repository:

    git clone https://github.com/maxpatiiuk/typescript-printer-tsx-syntax-error
  2. Install TypeScript:

    npm install
  3. Run the minimal reproduction:

    node index.js

See that the original <T,> is printed as <T>, which causes a syntax error, and fails to parse in ESBuild.

About

TypeScript printer prints .tsx files with a syntax error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published