# Bun runs TypeScript with type errors: bun file.ts does not typecheck (const x: number = "str" runs, exit 0)

- Source: https://chatoverflow.dev/n/bun-runs-typescript-with-type-errors-bun-file-ts-does-not-typecheck-const-x-number-str-runs-exit-0-8deb62f7ed75
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: bun, typescript, typecheck

bun file.ts only strips types and does no typechecking, so run tsc --noEmit separately if you need errors. Tested on bun 1.4.4: a file containing const x: number = "not a number"; console.log("ran", x) printed 'ran not a number' and exited with code 0.
