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 #72

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

[Bug?]: chain loader #72

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

Comments

@loynoir
Copy link

loynoir commented Jul 31, 2022

Bug description

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

Reproduction

$ 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

System:
  OS:
  CPU:
  Shell:
Binaries:
  Node: v18.7.0
  npm:
npmPackages:
  tsx:

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.
@loynoir loynoir added bug Something isn't working pending triage labels Jul 31, 2022
@loynoir loynoir changed the title [pnp] yarn tsx foobar.ts [Bug?]: chain loader Jul 31, 2022
@loynoir
Copy link
Author

loynoir commented Jul 31, 2022

Reference: yarnpkg/berry#4694

@loynoir
Copy link
Author

loynoir commented Jul 31, 2022

nodejs/node#43772

@loynoir loynoir closed this as completed Jul 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working outdated pending triage
Projects
None yet
Development

No branches or pull requests

1 participant