yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.42k stars 1.11k forks source link

[Bug?]: Error: Qualified path resolution failed: we looked for the following paths, but none could be accessed. #6577

Open demonicattack opened 4 hours ago

demonicattack commented 4 hours ago

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"

Image

"typegen": "yarn dlx @yarnpkg/pnpify run tsx src/scripts/typegen.ts"

Image

use Nodejs 23.0.0

"typegen": "tsx src/scripts/typegen.ts"

same error

"typegen": "yarn dlx @yarnpkg/pnpify run tsx src/scripts/typegen.ts"

Image

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

demonicattack commented 3 hours ago

To date, I have only been able to resolve this issue by using nodeLinker: node-modules.