LuxelEspañol

Luxel v0.2 · Reference · part 1 of 5

Luxel compiler diagnostics

luxel build reports problems in two formats with the same content:

  • Text, for people: file:line:column - severity CODE (rule): message, the source line with a caret, and a suggestion: line.
  • JSON, for tools and AI agents: luxel build --json prints { ok, errors, warnings, diagnostics: [...], outputs }. Each diagnostic is { code, severity, file, line, column, rule, message, suggestion }.

Rules for both formats:

  • file is relative to the project, with forward slashes.
  • line and column are 1-based.
  • code is stable: a code is never renumbered or reused. A new check gets a new code.
  • The exit code is 0 when there are no errors, 1 when there are errors, and 2 for a usage error.

Codes

CodeRuleSeverityWhenWhat to write instead
LUXEL-E000syntaxerrorTypeScript/JSX syntax errorFix the syntax at the position
LUXEL-E001no-function-handlererrorA prop is a function (onClick={…}, onMouseEnter, any on*)Logic runs on the server: ‹Action event="…"> and defineEvent; local changes in onSuccess
LUXEL-E002no-react-importerrorImport of react, react-dom or a client component libraryComponents from @luxel-framework/ui; your own helpers and data are fine
LUXEL-E003no-hookserrorA hook (useState, useEffect…) imported from React or @luxel-framework/uiServer state with bind, changes with ‹Action event>, local presentation with onSuccess
LUXEL-E004unknown-componenterrorAn HTML element (‹div>, ‹button>), a class component or a value that is not a component‹Stack as="div">, ‹Action>, ‹Field>… or a function component
LUXEL-E005duplicate-iderrorTwo zones share an id in one viewRename one: zone ids are unique per view
LUXEL-E006unknown-binderrorbind names a path the server contract does not declareA declared path (the message lists them and suggests the closest)
LUXEL-E007unknown-eventerrorAn ‹Action event> that the server contract does not handleA declared event, or declare it in server/contract.ts
LUXEL-E008collection-without-keyerror‹Collection> without itemKeyitemKey="‹the key the contract declares>"
LUXEL-E009missing-iderrorStatic ‹Text>, ‹Action> or ‹Status> without idid="…" (a suggestion is derived from the text)
LUXEL-E010unknown-properrorA prop the component does not have (style, class, dangerouslySetInnerHTML…)className and your stylesheet; text is always text
LUXEL-E011invalid-prop-valueerrorA value outside what the prop accepts (type="email", a bad class list, maxLength out of range…)One of the values the message lists
LUXEL-E012missing-properrorA required prop is missing (title, dataClass, event, name, label…)Add it; dataClass has no default on purpose
LUXEL-E013unknown-referenceerrorstatus, onSuccess.clear, onSuccess.focus or fields names a zone that is missing or of the wrong kindA ‹Status> id, ‹Field> names, an ‹Action> id
LUXEL-E014bind-type-mismatcherror‹Text> bound to a collection, or ‹Collection> bound to a single valueThe matching component
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. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.