Vue 2 Not Being Reactive #2119
-
Reproductionhttps://codesandbox.io/s/vue-2-playground-forked-sjbe72?file=/src/App.vue Steps to reproduce the bug
Expected behaviorA click on Push Array and Update Str should be reflected in the DOM Actual behaviorNothing happens until "Update!" is clicked. After this, "Push Array!" always updates the DOM, but "Update Str!" clicks are still only reflected when "Push Array!" is clicked Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This is quite confusing, you shouldn't need to write After trying locally, the error seems to go away so I think you have outdated dependencies (which probably include two versions of Vue). Try regenerating the lockfile and ensure the vue-template-compiler is the same version as vue |
Beta Was this translation helpful? Give feedback.
-
@posva I deleted the yarn.lock and regenerated it in my actual repo and this is still happening. I've got both vue and vue-template-compiler set to |
Beta Was this translation helpful? Give feedback.
-
It should be due to webpack because it did error on vite too... Try checking if you have multiple versions of vue being used by activating the sourcemaps and inspecting the result. Moving to a discussions so others can help |
Beta Was this translation helpful? Give feedback.
It should be due to webpack because it did error on vite too... Try checking if you have multiple versions of vue being used by activating the sourcemaps and inspecting the result. Moving to a discussions so others can help