Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ts-node is responsible for my favourite error message in all of computing.

Yes better than: 'Error: success' or 'keyboard not found: press F1 to continue'

> ts-node: Unknown file extension: ts.

Someone will reply for a technical reason about this (mentioning .mts or package.json settings or whatever) but that doesn't change the fact that a program whose only job is to run ts files should know what a ts file is. GitHub issue: https://github.com/TypeStrong/ts-node/issues/1967

tsx or @digitak/esrun both work out of the box.



I'm glad you mentioned this - I had the exact same issue when using ts-node and it really blew my mind.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: