LuxelEspañol

Luxel v0.1 · Reference · part 2 of 5

Luxel compiler diagnostics (2)

CodeRuleSeverityWhenWhat to write instead
LUXEL-E015invalid-item-templateerrorThe item template is not one ‹Action>/‹Text>, shows static text, uses an undeclared field, or param is not the key{(item) => ‹Action event="…" param={item.id}>{item.label}‹/Action>}
LUXEL-E016item-field-misuseerrorAn item field is computed with at build time (` ${item.label} `) or used outside its templatePlace the field as is; compose text on the server
LUXEL-E017text-outside-texterrorText directly inside a container, or an element inside ‹Text>Wrap text in ‹Text id="…">
LUXEL-E018invalid-view-rooterrorThe default export does not return exactly one ‹View>export default () => ‹View title="…" dataClass="…">…‹/View>
LUXEL-E019view-threwerrorThe view or a helper component threw at build timeFix the error; views run once, at build time, with static data
LUXEL-E020unresolved-importerrorA module or a named export does not existCheck the path or the name
LUXEL-E021event-conflicterrorOne event sent with two different shapes (fields or parameter)One event per shape
LUXEL-E022manifest-grammarerrorThe generated manifest breaks the VSA grammar (markup in a text, a text too long…), or (Sprint 12) the compiled template fails the structural markup check (e.g. a table part outside a table, which browsers do not build as written)Plain text only: HTML never travels; nest table parts inside ‹Stack as="table">
LUXEL-E023canvas-layouterrorThe hand-written Canvas layout (src/canvas/‹view>.canvas.json) is invalid or has no SVGFix the slot (it names a zone, fits the canvas; grids fit maxItems)
LUXEL-E024configerrorluxel.config.ts or the server contract is missing or malformedThe shape documented in @luxel-framework/compiler/config
LUXEL-E025async-componenterrorA view or helper component returns a PromiseSynchronous components; import static data
LUXEL-E026non-deterministic-viewerrornew Date(), Date.now() or Math.random() called while the view runs (Sprint 10) or while a view file, luxel.config.ts or the contract is evaluated (Sprint 12.3), or two evaluations of the view differRemove time and randomness: same input, same bytes
LUXEL-E027public-output-exposureerrorA public output contains a server state path, or (luxel check) a name in policies.exposure.serverOnlyRename the text that repeats it
LUXEL-E028dynamic-attributeerrorAn item field used as an attribute (className={item.state}): a dynamic attribute outside the closed listOnly text and param come from an item; dynamic attributes are the compiler's (disabled, data-key, the status class)
LUXEL-E029collection-without-limiterror‹Collection> without maxItems, or outside 1–512; a contract collection with page: false and no valid maxItems (or maxItems without page: false); a view's maxItems over the bound its exempt collection declares; a view bound by a path string that leaves maxItems out for an exempt collection. At run time (the host's log, a CollectionBoundError): a load or an event's answer with more items than the collection's maxItemsmaxItems={30}; larger lists need pagination (Sprint 7). An exempt list: collection({ …, page: false, maxItems: 12 }). At run time: return at most maxItems items, or raise the bound where it is declared
LUXEL-E030js-budgeterrorluxel check: a page downloads more executable JavaScript (Brotli, the runtime modules its manifest declares) than policies.jsBudgetKiBFewer capabilities on that page, or a budget that states the real need
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. Luxel 0.1.0-beta.1 is a beta: no external security review yet.