Workers SDK Issue Reports

← Back to Dashboard

#10646 Wrangler crashes and exits on a custom build error

Recommendation:KEEP OPEN
Difficulty:easy
Reasoning:

Confirmed bug - maintainer verified. PR #10715 attempted fix but stale since Oct 2025 (needs changes). Custom build errors should be handled like standard builds.

Suggested Action:

Follow up on PR #10715 or find new contributor to complete fix

Analysis Report

Issue Review: cloudflare/workers-sdk#10646

Summary

Wrangler dev crashes and exits when a custom build command fails, instead of gracefully handling the error and allowing recovery on the next file edit.

Findings

  • Created: 2025-09-14
  • Updated: 2025-09-15
  • Version: 4.36.0 → 4.60.0 (current)
  • Component: wrangler (custom build)
  • Labels: bug
  • Comments: 3

Key Evidence

  • Maintainer confirmed bug: dario-piotrowicz confirmed this is a valid bug on 2025-09-15, explaining that custom build failures should behave the same as standard build failures (dev server stays running, requests hang, edits can fix the issue)
  • Open PR exists: PR #10715 by @eshentials attempts to fix this issue but has been stale since October 2025
  • PR needs work: Maintainer requested changes on 2025-10-01 (unrelated code included, missing E2E test mentioned in description)
  • Not in changelog: Issue #10646 is not mentioned in the wrangler changelog, confirming it's unfixed
  • No minimal reproduction provided: Reporter did not provide reproduction steps or code

Recommendation

Status: KEEP OPEN

Reasoning: This is a confirmed, valid bug that affects the developer experience with custom builds. A maintainer has acknowledged the issue and provided clear guidance on expected behavior. While an open PR exists (#10715), it requires additional work and has been stale for several months.

Action: The issue should remain open. Consider following up on PR #10715 or finding a new contributor to complete the fix.

Suggested Comment

This issue is still valid as of Wrangler 4.60.0. PR #10715 attempted to fix this but has been stale since October 2025 after maintainer feedback. The PR needs: (1) removal of unrelated changes, and (2) addition of the E2E test mentioned in the description. If @eshentials is no longer available, this fix is available for another contributor to pick up.

Notes & Feedback (0)

No notes yet.

Add Note