0👍
The state, mutations should actually be properties of the store configs. There you declare the properties but they are not wrapped in the Vuex store.
You might want to check this page of the doc that explains it: https://vuex.vuejs.org/guide/#the-simplest-store.
(Here you are missing the createStore
part.)
Source:stackexchange.com