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
$ pnpm i
$ node --import ts-directly/register src/index.ts
node:internal/modules/run_main:129
triggerUncaughtException(
^
TypeError [Error]: item.test is not a function
at file:///C:/Users/pmh/dev/tmp/ts-directly-bug/node_modules/.pnpm/ts-directly@2.1.1_esbuild@0.23.1_typescript@5.6.2/node_modules/ts-directly/lib/tsconfig.js:71:44
at Array.find (<anonymous>)
at getAlias (file:///C:/Users/pmh/dev/tmp/ts-directly-bug/node_modules/.pnpm/ts-directly@2.1.1_esbuild@0.23.1_typescript@5.6.2/node_modules/ts-directly/lib/tsconfig.js:71:26)
at async resolve (file:///C:/Users/pmh/dev/tmp/ts-directly-bug/node_modules/.pnpm/ts-directly@2.1.1_esbuild@0.23.1_typescript@5.6.2/node_modules/ts-directly/lib/loader.js:76:19)
at async nextResolve (node:internal/modules/esm/hooks:866:22)
at async Hooks.resolve (node:internal/modules/esm/hooks:304:24)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:196:18)
I also tested with tsx using tsx src/index.ts, it works.
The text was updated successfully, but these errors were encountered:
env:
the reproduction repo:
https://github.com/panmenghan/ts-directly-bug
the steps to reproduce the bug:
I also tested with
tsx
usingtsx src/index.ts
, it works.The text was updated successfully, but these errors were encountered: