Repository navigation
Description
pnpm version
11.15.1 (fails)
Works on 11.2.2 with the same workspace config.
Observed via
Vite+ (vp install) which invokes the packageManager-pinned pnpm. Failure is inside pnpm itself (resolveViaPnprServer), not in Vite+ application code.
Log line immediately before the error:
Resolving dependencies via the pnpr server
Code to reproduce the issue
Minimal pnpm-workspace.yaml:
packages:
- 'packages/*'
catalog:
'@tanstack/store': 0.11.0
overrides:
'@tanstack/store': 'catalog:'Root package.json:
{
"name": "repro-root",
"private": true,
"packageManager": "[email protected]"
}packages/a/package.json:
{
"name": "a",
"private": true,
"dependencies": {
"@tanstack/store": "catalog:"
}
}Then:
pnpm install(In our CI this is triggered as vp install after bumping packageManager from [email protected] → [email protected].)
Expected behavior
Install succeeds. The default catalog defines @tanstack/store, and using catalog: in overrides is documented / catalogs.
Actual behavior
Scope: all 7 workspace projects
Resolving dependencies via the pnpr server
[ERROR] resolution failed: Could not resolve a catalog in the overrides: No catalog entry '@tanstack/store' was found for catalog 'default'.
pnpm: resolution failed: Could not resolve a catalog in the overrides: No catalog entry '@tanstack/store' was found for catalog 'default'.
at resolveViaPnprServer (.../pnpm/11.15.1/pnpm/dist/pnpm.mjs:190949:11)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
The catalog entry is present in pnpm-workspace.yaml (and duplicated under package.json → workspaces.catalog by our toolchain sync). The same tree installs cleanly on pnpm 11.2.2.
Additional context
- Real-world failure (Renovate bump
11.2.2→11.15.1): https://github.com/mykiary/caniplay.today/actions/runs/30002437651 - PR that only changes the pnpm pin: https://github.com/mykiary/caniplay.today/pull/158
- Prior successful install on the same catalog/override setup with
11.2.2(same workflow): https://github.com/mykiary/caniplay.today/actions/runs/30002416727 - Workspace overrides also include named-catalog refs (
vite: catalog:viteplus,vitest: catalog:viteplus); resolution fails on the default-catalog@tanstack/storeoverride first. - Related recent PNPR work noted in the 11.15 release notes (“Fixed pnpr workspace resolution to preserve project names and versions for
workspace:dependencies”), so this may be adjacent.
Happy to provide a reduced fixture repo or more logs if useful.
Activity
github-actions commentedon Jul 23, 2026
Oz triage is running now and will classify this issue and apply one pnpm
state:label.Follow along in Oz: https://app.warp.dev/session/019f8ed3-5ca4-77d1-999d-f8ace97b0ea8
github-actions commentedon Jul 23, 2026
Triage result
State:
Ready to implement→state: acceptedRoot cause identified. The bug is in
pnpm11/installing/deps-installer/src/install/index.tsat line 2697, insideinstallViaPnprServer:opts.overridesholds the raw override map — values are the literal strings frompnpm-workspace.yaml, e.g.'@tanstack/store': 'catalog:'. These raw values are sent to the pnpr server as-is. The pnpr server (Rust/pacquet) tries to resolvecatalog:references in overrides viaparse_overrides, but the workspace catalog definitions are never included in the request body — so resolution fails with "No catalog entry '@tanstack/store' was found for catalog 'default'."Fix
Pre-resolve catalog references before sending overrides to the pnpr server. Both utilities are already imported in the file:
parseOverridesresolves anycatalog:specifiers againstopts.catalogs(the workspace catalog map).createOverridesMapFromParsedconverts the result back to theRecord<string, string>the pnpr wire protocol expects. No protocol changes to the pnpr server are needed — it already handles resolved specifiers correctly.Scope
pnpm11/path)Test coverage
A regression test should be added to
pnpm11/installing/deps-installer/test/install/pnprWorkspaceMetadata.tsverifying that acatalog:specifier inoverridesis resolved to its version string before reachingresolveViaPnprServer(using the existing mock).Written by an agent (Oz, auto).
fix: resolve catalog references when installing via a pnpr server
fix: resolve catalog references when installing via a pnpr server (#1…