Error codesState

Code writes to a computed() or a prop

MARKLESS_STATE_READ_ONLY_WRITEerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_STATE_READ_ONLY_WRITE: Cannot write to "<target>" because <bindingLabel> are read-only.
https://markless.dev/errors/MARKLESS_STATE_READ_ONLY_WRITE

Words in angle brackets change from case to case.

Why

You can only write to state(). A computed() value and a prop are read-only.

Fix

For a computed value, write to the state it reads from. For a prop, let the parent own the state, and pass down a handler that changes it.

Where Markless raises it

All error codes