Chuazz Posted on Dec 31, 2023 • Edited on Dec 31, 2023 How to update array element in Vue3 Composition API #vue I have trouble while update a specific element in a array, this is my code then i get a message like this: "Invalid left-hand side in assignment expression". Top comments (2) Subscribe Submit Preview Dismiss Collapse Expand Jon Randy ποΈ Jon Randy ποΈ Jon Randy ποΈ Follow π€ Artisanal developer - coding with varying degrees of success since 1983 Location Bangkok πΉπ Joined Jun 1, 2018 • Dec 31 '23 Dropdown menu Copy link Hide You are trying to assign values to values, you can't do that. This is a JS mistake - nothing to do with Vue. Replace ?. with . Collapse Expand Chuazz Chuazz Chuazz Follow Mobile Developer Joined Dec 31, 2023 • Dec 31 '23 Dropdown menu Copy link Hide thank you so muchπ Code of Conduct • Report abuse
Top comments (2)
You are trying to assign values to values, you can't do that. This is a JS mistake - nothing to do with Vue.
Replace
?.with.thank you so muchπ