You attempted to use a read-only identifier in the left-hand side of an assignment operation. You cannot assign a value to a read-only identifier.
To correct this error
-
Use read-only identifiers in the right-hand side of an assignment operation only.