T123error
p-model target is not assignable
A p-model expression is not a variable that can be assigned to.
When it is reported
p-model writes the input's value back, so it needs a field, such as state.Name, not a call or a computed value.
How to fix it
Bind p-model to a field.
In your terminal and editor
$ piko explain T123Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeModelTypeError in Piko's source to see where it is reported.