Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: chain loader #4694

Closed
1 task
loynoir opened this issue Jul 31, 2022 · 2 comments
Closed
1 task

[Bug?]: chain loader #4694

loynoir opened this issue Jul 31, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@loynoir
Copy link

loynoir commented Jul 31, 2022

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

https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#2022-07-13-version-1860-current-targos

nodejs/node#42623

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

@loynoir loynoir added the bug Something isn't working label Jul 31, 2022
@loynoir
Copy link
Author

loynoir commented Jul 31, 2022

Reference: privatenumber/tsx#72

@arcanis
Copy link
Member

arcanis commented Jul 31, 2022

Chained loaders aren't complete yet - still missing nodejs/node#43772 or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants