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
Parse and transform errors do not include the line and column #839
A syntax error reports only the message, with no line, column, or code frame:
$ cat main.tsconst ok = 1;console.log(ok);const broken: number = ;
$ node --import @oxc-node/core/register main.tsError: Failed to parse file:///…/main.ts: Unexpected token
$ tsx main.tsError: Transform failed with 1 error:/…/main.ts:3:23: ERROR: Unexpected ";"
In a large file the message gives no way to find the error. Transform errors (Failed to transform …) have the same problem. Reproduced with @oxc-node/core@0.1.7 from npm on macOS arm64 with Node.js 24.12, and on 22.18 and 26.5 through an embedder that compiles in v0.1.7.
Cause
join_errors (src/lib.rs#L2282-L2288) attaches the source with with_source_code, then formats each diagnostic with to_string(), which prints only the message and drops the labeled span. Both Failed to parse (#L1079-L1083) and Failed to transform (#L1270-L1275) use it.
Suggested fix
Render each diagnostic with its location: at least path:line:column, or a colorless graphical report with the offending line, as esbuild, tsc, and Node.js type stripping show.
Activity
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
docs(vpx): document the differences from tsx found in e2e testing
feat(vpx): run TypeScript scripts with the vendored oxc-node (#2936)