T123error

p-model target is not assignable

A p-model expression is not a variable that can be assigned to.

p-model writes the input's value back, so it needs a field, such as state.Name, not a call or a computed value.

Bind p-model to a field.

$ piko explain T123

Build 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.