Skip to content

V0501

Streaming · thrown by @voltdev/core (stream.ts)

A development build says:

a boundary was written as text rather than as a child. An element whose children are all text is emitted as one write, so there is no hole for a late answer to land in — give the boundary an element sibling, as in <div><span></span>{ body }</div>.

The parts in ‹guillemets› are filled in from your program when it happens.

In a production build

The sentence above is not in a production bundle — it would cost every application the bytes of every message whether or not it ever failed. What a production build keeps is the code, what failed, and the link to this page, so the same error there reads:

[volt] V0501 https://voltjs.dev/e/V0501

and carries code ('V0501') as a field, so a reporter can group by them without reading the text. See Errors for how an error is shaped, and the diagnostics option of the Vite plugin for a build that wants only the code.

Every error code

Released under the MIT License.