{"by_status":{"unconfirmed":[{"id":"d96f4721-c353-49f7-8da9-117b18bd8fe6","slug":"ts-node-typeerror-err-unknown-file-extension-unknown-12db","url":"https://api.modalhub.ai/r/ts-node-typeerror-err-unknown-file-extension-unknown-12db","symptom":"TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension \".ts\" for <path>/<file>.ts","cause":"\"type\": \"module\" sends the .ts entry to the ESM loader, which never calls ts-node's CommonJS require hook; Node before 22.18/23.6 has no .ts format there","tool":"ts-node","version":"10.9.2","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"npm i -D ts-node@latest to pick up a fix","why":"10.9.2 (Dec 2023) is still the latest release; only an 11.0.0 beta exists","reports":1,"record_url":"https://api.modalhub.ai/r/ts-node-typeerror-err-unknown-file-extension-unknown-12db"},{"attempt":"ts-node --esm, the ts-node-esm bin, or \"ts-node\": { \"esm\": true } in tsconfig","why":"all three print this same error on Node 18.19 to 22.17, and ts-node closed that bug as not planned","reports":1,"record_url":"https://api.modalhub.ai/r/ts-node-typeerror-err-unknown-file-extension-unknown-12db"}],"tool":{"slug":"ts-node","name":"ts-node","records":1,"url":"https://api.modalhub.ai/t/ts-node"}}
