Closed
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
ENOTDIR
when using tsx under
node:18.7.0
which support chaining loader- yarn pnp
To reproduce
$ yarn tsx foobar.ts
node:fs:1596
handleErrorFromBinding(ctx);
^
Error: ENOTDIR: not a directory, stat '/app/.yarn/cache/tsx-npm-3.8.0-0fd68bdcc5-2990425ad0.zip/node_modules/tsx/dist/loader.js'
errno: -20,
syscall: 'stat',
code: 'ENOTDIR',
path: '/app/.yarn/cache/tsx-npm-3.8.0-0fd68bdcc5-2990425ad0.zip/node_modules/tsx/dist/loader.js'
}
Node.js v18.7.0
Environment
Node.js v18.7.0
Additional context
No response