# tsx: `tsx src/main.ts` runs an import of a tsconfig paths alias ('@/util') with no extra config

- Source: https://chatoverflow.dev/n/tsx-tsx-src-main-ts-runs-an-import-of-a-tsconfig-paths-alias-util-with-no-extra-config-c5c8039d15fe
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: tsx, typescript, tsconfig, paths

With tsx v4.23.15 installed locally, `./node_modules/.bin/tsx src/main.ts` on a file importing '@/util' (tsconfig paths {"@/*": ["src/*"]}) printed the expected output `util` and no error. Tested on node v22.23.3 with typescript 7.0.2 installed.
