vp treats a nested project as part of the parent's pnpm workspace, ignoring its own packageManager and lockfile
Maintainer thường phản hồi trong vòng 1 ngày
@liangmiQwQ đang làm issue này rồi.
Từ ngày 12/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 6k
- Fork
- 274
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 203
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerCó thể đã có người làm @Crimson341 đã nhận 2 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
voidzero-dev/vite-plus#2970 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
voidzero-dev/vite-plus#2097 · 10 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support npm dist-tags in `vp env pin` (e.g. `pnpm@latest-10`)Có thể đã có người làm @liangmiQwQ đã nhận hôm nay. Đang mởenhancement
voidzero-dev/vite-plus#3034 · 2 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
voidzero-dev/vite-plus#3033 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
scanaislop/aislop#482 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs(skills): issue-first should reference an existing Linear ticket instead of filing a duplicateĐang mởdocumentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
chatmail/core#8824 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày