Fix Cannot Assign To Read Only Property Error In LWC In Lightning web components. If we are trying to update public (@api) property or wired property in JavaScript function we usually get this issue. For resolving this issue, we need to clone that property to new variable and update it.