You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A tsconfig that cannot be read is ignored without a warning #844
Two cases leave a process with no tsconfig and no warning, so the first sign is an unrelated ERR_MODULE_NOT_FOUND for a paths alias. With a valid tsconfig.json ("paths": { "@lib/*": ["src/lib/*"] }) and no variable, main.ts (import { v } from '@lib/a') prints alias.
A TS_NODE_PROJECT that names a missing file, such as one left over from ts-node:
tsx resolves the alias in both cases: it ignores TS_NODE_PROJECT and parses the broken file leniently. Reproduced with @oxc-node/core@0.1.7 from npm on macOS arm64, Node.js 24.12.
Suggested fix
Warn once on stderr, naming the file, when an explicit tsconfig path (setTsconfigPath(), TS_NODE_PROJECT, OXC_TSCONFIG_PATH) does not exist, and when a discovered tsconfig fails to parse, with the parse error.
Activity
fix(core): warn when a tsconfig cannot be read instead of ignoring it…
chore(deps): sync oxc-node to 1c23b37
chore(deps): sync oxc-node to 1c23b37
chore(deps): sync oxc-node to 1c23b37
chore(deps): sync oxc-node to 1c23b37
chore(deps): sync oxc-node to 1c23b37
chore(deps): sync oxc-node to 1c23b37
chore(deps): sync oxc-node to 1c23b37
feat(vpx): run TypeScript scripts with the vendored oxc-node (#2936)