I wrote this one (my own blog). I tested node app.ts with no tsx or build step on Node 22.20, 24.22 and 26.13. Interfaces, generics, as casts and import type just work. Enums, namespaces, parameter properties, decorators, .tsx files and extensionless imports all fail, with the exact errors in the post, plus a tsconfig (erasableSyntaxOnly, verbatimModuleSyntax) that catches them before runtime. Note that --experimental-transform-types is gone in Node 26.

Happy to hear if anyone is running this in production and hit other edges.

all 2 comments

sorted by: hot top controversial new old
[–] 0 points 4 days ago (1 child)

There's so much slop I could tell this was AI just from the title.

Repeat after me: I will not use AI for prose.

  • source
  • hideshow 1 child comment