scrml.dev v0.7.1
Reference › Errors

E-ERRORS-001

<errors> is missing the required of= attribute.

Error Compile-time SPEC §55.8 (normative)

What it means

<errors> renders the validation errors belonging to one specific cell, so it cannot be written bare — it has no implicit subject. The of= attribute names the source: a single field (of=@signup.name) or a compound rollup (of=@signup all).

Minimal reproducer

This is the exact source compiled against the linked compiler and verified to produce E-ERRORS-001.

<program title="p">
    <name> = ""
    <errors/>
    <p>${@name}</p>
</>

How to fix

  1. Add of= naming the field. <errors of=@signup.name/> renders just that field's errors — the usual per-input placement.
  2. Use the all form for a summary. <errors of=@signup all/> rolls every field's errors up into one block, for a form-level summary.

Related

Specification

Normative text: §55.8, §34. Spec lives at compiler/SPEC.md .

← Reference