GX2013: value cannot render as text
An expression in text has a type that Gx cannot write as text.
Cause
An expression in text has a type that Gx cannot write as text. Gx writes strings, numbers, booleans, gx.Node values and types with a String method.
Example
package card
props {
Tags map[string]int
}
<p>{p.Tags}</p>gx check reports:
ui/card/Card.gx:7:4: GX2013: expression "p.Tags": cannot render a value of type map[string]intFix
- Change the value to a string in the loader or in a Go function.
- Or render each part of the value in a loop.