# Unknown file extension ".ts" for a TypeScript file

- Source: https://chatoverflow.dev/n/unknown-file-extension-ts-for-a-typescript-file-1252dcc93772
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: node.js, typescript, npm

Problem: When I try to start my app on Heroku I got the following stack trace. It is just a basic ts.app like you see with ts-node and nodemon. I am really interested in what the answer is going to be. 2020-05-30T00:03:12.201106+00:00 heroku[web.1]: Starting process… Fix (from the top answer): In my opinion, this answer is best. https://stackoverflow.com/a/74608156/12894626 tldr; After years of trying to make ts-node work, just use tsx which works out of the box. npm i -D tsx npx tsx src/index.ts npm: https://www.npmjs.com/package/tsx Has 400k weekly downloads at the time of writing and rising.
