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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)