vp treats a nested project as part of the parent's pnpm workspace, ignoring its own packageManager and lockfile
Maintainer antworten meist innerhalb von 1 Tag
@liangmiQwQ arbeitet bereits daran.
Seit 12.10.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Describe the bug
In a repo whose root is a pnpm project with a settings-only pnpm-workspace.yaml (no packages, used for overrides / allowBuilds), vp treats every nested project as part of that workspace, even when the nested folder isn't listed under packages and has its own packageManager pin and lockfile.
Inside the nested npm project svc/:
vpr helloruns the root'shelloscript instead of svc's.vp install --frozen-lockfileruns pnpm, which refuses withThis project is configured to use npm. Without apackageManagerfield insvc/it fails withHeadless installation requires a pnpm-lock.yaml fileinstead.vp env currentinsidesvc/reports pnpm 12.11.2 with sourcepackageManager, the root's pin, not svc's[email protected].
I expected vp to treat svc/ as its own npm project, as it does when the root has no pnpm-workspace.yaml. pnpm 11+ only reads settings like overrides from pnpm-workspace.yaml, so a pnpm root can't avoid having one.
We hit this when switching a repo root to pnpm: about 20 Cloud Run services below it stay on npm or bun, and vp stopped working in all of them.
Workaround: a comment-only pnpm-workspace.yaml plus the packageManager pin in each nested project makes vp treat it as its own project again.
Reproduction
https://github.com/Goobles/vp-nested-workspace-repro
Steps to reproduce
git clone https://github.com/Goobles/vp-nested-workspace-repro
cd vp-nested-workspace-repro
./repro.sh
repro.sh runs vpr hello and vp install --frozen-lockfile in svc/, first with the root pnpm-workspace.yaml (bug), then with it moved away (expected behaviour).
System Info
# vp env current (run inside svc/)
Node.js:
Version 24.19.0
Source default
Bin Path /home/agent/.vite-plus/js_runtime/node/24.19.0/bin/node
Installed true
Mode managed
Package Manager:
Name pnpm
Version 12.11.2
Source packageManager
Bin Paths
pnpm /home/agent/.vite-plus/package_manager/pnpm/12.11.2/pnpm/bin/pnpm
pnpx /home/agent/.vite-plus/package_manager/pnpm/12.11.2/pnpm/bin/pnpx
Installed true
Mode system_first
# vp --version
vp v1.1.0
# Linux x86_64
Used Package Manager
npm (nested project), pnpm (repo root)
Logs
### 1. Parent has pnpm-workspace.yaml (bug)
$ vpr hello
$ echo hello from ROOT ⊘ cache disabled
hello from ROOT
$ vp install --frozen-lockfile
× This project is configured to use npm
help: Run a one-off command with "pnpm dlx npm <command>", or link a npm
command that follows this project's pin with "pnpm shim add npm".
### 2. Parent pnpm-workspace.yaml removed (expected behaviour)
$ vpr hello
$ echo hello from SVC ⊘ cache disabled
hello from SVC
$ vp install --frozen-lockfile
added 1 package, and audited 2 packages in 390ms
found 0 vulnerabilities
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Written by claude-opus-5-5 via Claude Code in T3 Code on goobles-agentbox.
- Vorherrschende Sprache
- Rust
- Sterne
- 6k
- Forks
- 274
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 203
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voidzero-dev/vite-plus
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerEvtl. vergeben @Crimson341 hat das vor 2 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
voidzero-dev/vite-plus#2970 ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
voidzero-dev/vite-plus#2882 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
voidzero-dev/vite-plus#2097 · 10 Kommentare · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support npm dist-tags in `vp env pin` (e.g. `pnpm@latest-10`)Evtl. vergeben @liangmiQwQ hat das heute übernommen. Offenenhancement
voidzero-dev/vite-plus#3034 · 2 Reaktionen · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
voidzero-dev/vite-plus#3033 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in voidzero-dev/vite-plus
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
bytecodealliance/rustix#1703 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
linux build warningOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Pomax/vst-plugins#24 ·
Maintainer antworten meist innerhalb von 1 Tag
-
V1 manifest lists written by Java lose added/existing/deleted file countsEvtl. vergeben @kacper-li-airspace-intelligence hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
apache/iceberg-rust#3445 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Slack integration: links on self-hosted domains never unfurl (parseCapShareUrl only accepts cap.so / cap.link)Evtl. vergeben @mangeshraut712 hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CapSoftware/Cap#2546 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag