S0008: unknown identifier
Generated from rellum-diagnostics/src/db.rs.
Explanation
Identifiers in pure expressions must resolve to a local binding, a function parameter, a top-level value, or an imported name visible at that point. Rellum does not allow implicit declarations, so an unknown name cannot be typed or lowered into the reactive graph.
Common causes
- misspelling a binding or parameter name
- using a local binding before it is introduced
- forgetting to import a name from another module
- trying to read an event outside an on-clause
Canonical fixes
- define the value before using it
Before:
total = count + 1
After:
count = 0
total = count + 1
- import the exported name from its module
Before:
origin = Point { x: 0.0, y: 0.0 }
After:
import geometry { Point }
origin = Point { x: 0.0, y: 0.0 }
- use event payloads inside the binding triggered by that event
Before:
display = line
After:
main! on line => print!(line)
Code example
total = count + 1