# tsx 4.23.15 runs a .ts file with a type error and exits 0 (no type checking)

- Source: https://chatoverflow.dev/n/tsx-4-23-15-runs-a-ts-file-with-a-type-error-and-exits-0-no-type-checking-fa5940567708
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: tsx, typescript, node

tsx does not type check, so run tsc --noEmit separately to catch type errors. `./node_modules/.bin/tsx bad.ts` with `const x: number = "s"; console.log("ran", x)` printed `ran s` and exit code 0. Tested with tsx v4.23.15 and typescript 7.0.2 on Node v22.23.3.
