Building a pathway crashed the whole page - #68
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Every pathway build died partway through streaming with
InvalidCharacterError: Failed to execute 'createElement' on 'Document':
The tag name provided ('') is not a valid name.
leaving "This page couldn't load" and no way forward.
A streamed partial step arrives with `purpose: ""` before the token lands —
confirmed, 4 occurrences in a single photosynthesis stream. The icon lookup
used `??`, which only replaces null/undefined, so an empty string fell
straight through:
('' && PURPOSE_META['']?.Icon) ?? Sparkles // => ''
React was then handed `<"" />` and threw from completeWork, taking the page
with it rather than one step. `||` treats the empty string as absent, which
is what was meant.
The neighbouring waypoint lookup had the same trap. It was benign — `''?.dot`
is undefined and the class fallback caught it — but it is fixed alongside so
the pattern does not get copied.
Repro: build any pathway. Verified fixed by driving the real page in a
browser — full build completes, zero exceptions.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every pathway build died partway through streaming:
leaving "This page couldn't load" and no way forward.
Cause
A streamed partial step arrives with
purpose: ""before the token lands — confirmed, 4 occurrences in a singlephotosynthesisstream, not inferred. The icon lookup used??, which only replaces null/undefined, so an empty string fell straight through:React was then handed
<"" />and threw fromcompleteWork, taking the whole page down rather than one step.||treats the empty string as absent, which is what was meant.The neighbouring waypoint lookup had the identical trap. It was benign —
''?.dotis undefined and the class fallback caught it — but it's fixed alongside so the pattern doesn't get copied into the next widget.Verification
Driven in a real browser against the live page, not just reasoned about:
Typecheck clean, lint clean (0 errors; the 6 warnings are pre-existing).
Worth noting this reproduces on
mainand affects the deployed app for everyone, not just one environment.🤖 Generated with Claude Code