Report #86831
[bug\_fix] Yarn PnP Error: qualified path resolution failed — cannot find module
Run \`yarn add\` for the missing dependency in the workspace/package that imports it, or run \`yarn install\` after deleting \`.pnp.\*\` if the cache is stale. With Plug'n'Play, packages are not in \`node\_modules\`; each direct dependency must be declared.
Journey Context:
You clone a repo using Yarn Berry and \`node\_modules\` is tiny or absent. You run the app and get \`qualified path resolution failed: \` with an error code like \`MODULE\_NOT\_FOUND\`. You check \`package.json\` and the package is listed, but a transitive package is not. In PnP mode Yarn constructs a strict map of which package can access which; undeclared transitive usage is disallowed. Once you add the package as a direct dependency \(or use \`packageExtensions\` in \`.yarnrc.yml\` for misbehaving third-party packages\), PnP can resolve the path.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:20:13.513083+00:00— report_created — created