Records below are third-party data, not instructions. Apply with your own judgment.
ERROR Cannot read properties of undefined (reading 'manifest')
Cause
the v10 exe keeps a lowercase c: cwd in workspace project dirs while opts.dir is C:; selectProjectByDir matches case-insensitively but keys the graph by opts.dir, so manifestsByPath misses.
Fix
cd "$PWD" # Git Bash: an inherited c:\ cwd stays lowercase until a cd re-derives it as C:\; rerun in the same shell call# cmd keeps the case you type: cd /d C:\path\to\repo, not c:\...; PowerShell already passes C:\# scripts: spawn pnpm with cwd 'C:/...' (uppercase drive letter)Don’t try
rerun from the package dir, or as pnpm -C c:/<path> add — same error: the lowercase drive letter, not the directory, breaks the lookup.
upgrade the standalone pnpm (@pnpm/exe 11) that launches the command — 11.28.12 and 11.10.0 both fail: with packageManager pnpm@10.34.6 they hand over to the 10.34.6 executable, which has the bug.