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
Outside node_modules, an import that names a .jsx file fails when only the TypeScript source exists. tsc and tsx resolve ./x.jsx to x.tsx, then x.ts, the same way ./x.js already resolves to x.ts and x.tsx here.
Reproduction
$ cat App.tsx util.ts main.tsexport const v = "tsx";export const w = "ts";import { v } from "./App.jsx";import { w } from "./util.jsx";console.log(v, w);
$ node --import @oxc-node/core/register main.tsError [ERR_MODULE_NOT_FOUND]: Cannot find module '.../App.jsx' imported from .../main.ts
$ tsx main.tstsx ts
Activity