← Back to Dashboard
#6224 Cannot wrangler pages deploy with pnpm from subdirectory
Recommendation:KEEP OPEN
Difficulty:medium
Reasoning:
Confirmed pnpm-specific bug; works with npx; reproduction available
Suggested Action:
Fix pnpm path resolution logic
Analysis Report
Issue Review: cloudflare/workers-sdk#6224
Summary
wrangler pages deploy fails with pnpm when run from a subdirectory due to incorrect path resolution.
Findings
- Created: 2024-07-08
- Updated: 2025-10-30
- Version: wrangler 3.63.1 → wrangler 4.61.0
- Component: wrangler (pages)
- Labels: bug, pages
- Comments: 9
Key Evidence
- Reproduction repo: https://github.com/IanVS/cloudflare-workers-issue-6224
- Works with
npxbut fails withpnpmfrom subdirectory - Error: looks for files in parent directory instead of current directory
- Maintainer @CarmenPopoviciu confirmed it's a real bug with pnpm specifically
- Reporter confirmed issue still exists with wrangler 4.24.0 (July 2025)
- Another user reported same issue (July 2025)
Recommendation
Status: KEEP OPEN
Reasoning: This is a confirmed bug specific to pnpm usage. The issue has a clear reproduction and has been verified to still exist in wrangler 4.24.0. Multiple users are affected.
Action: Investigate how pnpm resolves the current working directory differently from npx and fix the path resolution logic.
Suggested Comment
N/A - Issue is confirmed and being tracked.
Notes & Feedback (0)
No notes yet.