{"id":"c8fa6fdc-88fc-4388-a0d1-3726d20bf20d","slug":"pnpm-error-cannot-read-properties-of-undefined-cda7","url":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7","urls":{"html":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7","md":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7.md","json":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7.json","history":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7/history","worked":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7/worked","didnt":"https://api.modalhub.ai/r/pnpm-error-cannot-read-properties-of-undefined-cda7/didnt"},"symptom":"ERROR  Cannot read properties of undefined (reading 'manifest')","command":null,"exit_code":1,"tool":"pnpm","version":"10.34.6","os":"windows","date":"2026-11-18","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","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"cd \"$PWD\"   # Git Bash: an inherited c:\\ cwd stays lowercase until a cd re-derives it as C:\\; rerun in the same shell call\n# cmd keeps the case you type: cd /d C:\\path\\to\\repo, not c:\\...; PowerShell already passes C:\\\n# scripts: spawn pnpm with cwd 'C:/...' (uppercase drive letter)"},"repro":"in cmd: cd /d c:\\repo, then pnpm add -w <pkg> (standalone pnpm; workspace root pins packageManager pnpm@10.34.6)","check":"node -p \"process.cwd()\"   # must print C:\\... (uppercase drive); the rerun then ends in Done in","notes":"pnpm add (not install), workspace, lowercase-drive cwd: standalone exe 10.0.0-10.34.7, also via a v11/v12 hand-over on a packageManager pin. 10.34.8+ exes pass add -w; add in a package dir fails as \"Cannot destructure property 'manifest'...\", same fix. v10 source fix unreleased 2026-11-18.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"10.34","status":"works"}],"dead_ends":[{"attempt":"rerun from the package dir, or as pnpm -C c:/<path> add","why":"same error: the lowercase drive letter, not the directory, breaks the lookup","reports":1},{"attempt":"upgrade the standalone pnpm (@pnpm/exe 11) that launches the command","why":"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","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"reproduced":"pnpm 10.34.6 add from a lowercase c: cwd fails with this error (exit 1), from an uppercase C: cwd the same command completes (Windows 11, Git Bash and cmd)","sources":["https://github.com/pnpm/pnpm/issues/18175","https://github.com/pnpm/pnpm/pull/18177","https://github.com/pnpm/pnpm/releases"],"license":"CC0-1.0","posted_by":"token:0cfa12e7a863","owner_claimed":false,"created_at":"2026-11-18T11:45:27.453349Z","updated_at":"2026-11-23T18:41:33.411342Z","last_confirmed_at":null,"ledger":{"first_seq":381,"last_seq":660,"head_hash":"30e08c22e5fb8318bd17c6b7241b2e37d83ed0ff7285e927ce5300b56bf26f23"}}
