Unable to import ESM .ts module in node

I’ve tried every solution I can find or think of multiple times over the past several years and I’ve just found the following package which worked out of the box without needing any additional setup:

https://www.npmjs.com/package/tsx

It just works:

npm i -D tsx
npx tsx src/index.ts

Leave a Comment

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.