scrml.dev v0.7.1
Reference › Errors

E-ERRORS-002

<errors of=…> requires an @-rooted expression.

Error Compile-time SPEC §55.8 (normative)

What it means

The of= attribute must resolve to a reactive cell, so it has to be written as an @-rooted scrml expression. A bare string or an unrooted identifier gives the compiler nothing to bind to — it cannot tell which cell's validity surface to read, and the element would render permanently empty.

Minimal reproducer

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

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

How to fix

  1. Root the expression with @. of="name" becomes of=@signup.name. The sigil is what makes it a reactive read rather than a string.

Related

Specification

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

← Reference