You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get Vuex working with the new Vue.js 2.0.0 build. But when I'm running the counter example I keep getting the following errors after building the code with webpack:
vue.common.js:2232[Vue warn]: Trying to access non-existent property "count" while rendering. Make sure to declare reactive data properties in the data option. (found in component <Counter>)
The same error occurs for: increment, decrement, incrementIfOdd, incrementAsync
It seems that vuex is not working as expected... I can upload my code to a github repo if needed
I uploaded my project. It's just a copy of the example to a more real setup for a project. I'm currently maintaining a project in Vue 1.0.26 with an elastic search backend. I want to rebuild the app to Vue 2.0 with Vuex
vuex option in Vue's component option is deprecated on Vuex 2.0. And also actions and getters API is changed.
You can use mapGetters and mapActions instead.
Hi,
I'm trying to get Vuex working with the new Vue.js 2.0.0 build. But when I'm running the counter example I keep getting the following errors after building the code with webpack:
vue.common.js:2232[Vue warn]: Trying to access non-existent property "count" while rendering. Make sure to declare reactive data properties in the data option. (found in component <Counter>)
The same error occurs for:
increment
,decrement
,incrementIfOdd
,incrementAsync
It seems that vuex is not working as expected... I can upload my code to a github repo if needed
I'm using:
"vue": "^2.0.0-beta.6",
"vuex": "^2.0.0-rc.4",
The text was updated successfully, but these errors were encountered: