typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

`erasableSyntaxOnly` not supported

Open indooorsman opened this issue 7 months ago • 3 comments

tsgo -p ./tsconfig.json 
tsconfig.json:28:5 - error TS5023: Unknown compiler option 'erasableSyntaxOnly'.

28     "erasableSyntaxOnly": true,
       ~~~~~~~~~~~~~~~~~~~~

Found 1 error in tsconfig.json:28

indooorsman avatar May 22 '25 19:05 indooorsman

This is expected; the version of the compiler supported is not 5.8, it's "some random revision from a bit ago" which you can see in: https://github.com/microsoft/typescript-go/tree/main/_submodules

jakebailey avatar May 22 '25 19:05 jakebailey

@jakebailey I see. Thank you.

indooorsman avatar May 22 '25 19:05 indooorsman

Might be worth to keep this issue open, until it's working?

This is expected; the version of the compiler supported is not 5.8, it's "some random revision from a bit ago" which you can see in: main/_submodules

From my understanding, it is on the roadmap that typescript-go will be eventually updated to the latest version of the Strada compiler. So hopefully, typescript-go will support erasableSyntaxOnly soon.

theoludwig avatar May 22 '25 20:05 theoludwig

Still not working in 5.8.3, options is ignored. Looking forward to this being implemented!

jjanie00 avatar Jun 26 '25 06:06 jjanie00

This was fixed in the above linked PR. What isn't working?

jakebailey avatar Jun 26 '25 06:06 jakebailey

Thanks for the clarifacation ! I see the fix is in typescript-go, but I'm using the official TypeScript compiler (tsc 5.8.3). Is this feature planned for the main tsc as well ?

jjanie00 avatar Jun 26 '25 06:06 jjanie00

Yes, 5.8 is the first release it was available in. https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-8.html#the---erasablesyntaxonly-option

jakebailey avatar Jun 26 '25 07:06 jakebailey