Skip to content

[Bug?]: chain loader #72

@loynoir

Description

@loynoir

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions