I encountered an error related to qualified path resolution while using Yarn Berry. The error message indicates that a specific source path could not be accessed.
To reproduce
I am trying to generate types for ESLint using tsx, but I am encountering an error related to qualified path resolution.
use Nodejs 22.9.0
"typegen": "tsx src/scripts/typegen.ts"
"typegen": "yarn dlx @yarnpkg/pnpify run tsx src/scripts/typegen.ts"
use Nodejs 23.0.0
"typegen": "tsx src/scripts/typegen.ts"
same error
"typegen": "yarn dlx @yarnpkg/pnpify run tsx src/scripts/typegen.ts"
Reproduction Steps:
Attempt to generate types for ESLint using tsx.
Observe the error message indicating that the specified path could not be found.
Repeat the same steps using ts-node instead of tsx.
Observe that the same error occurs.
Expected Behavior: The types should be generated correctly without any path resolution errors.
Self-service
Describe the bug
I encountered an error related to qualified path resolution while using Yarn Berry. The error message indicates that a specific source path could not be accessed.
To reproduce
I am trying to generate types for ESLint using tsx, but I am encountering an error related to qualified path resolution.
use Nodejs 22.9.0
"typegen": "tsx src/scripts/typegen.ts"
"typegen": "yarn dlx @yarnpkg/pnpify run tsx src/scripts/typegen.ts"
use Nodejs 23.0.0
"typegen": "tsx src/scripts/typegen.ts"
same error
"typegen": "yarn dlx @yarnpkg/pnpify run tsx src/scripts/typegen.ts"
Reproduction Steps:
Repository:
My repository: my repo
Similar Issues:
tsx: tsx issue
Environment
Ubuntu 24.04 Node.js version: 22.9.0 && 23.0.0 Yarn version: 4.5.1 TypeScript version: 5.6.3 Yarn workspaces
Maybe it's worth adding tsx support to the @yarnpkg/sdks