I cant't figure out why I am getting this error. Everything looks properly. Import store to the component like this.
import store from './store';
new Vue({
components: {
SomeComponent
},
store
});
My store looks like this
import Vue from 'vue';
import Vuex from 'vuex';
import * as getters from './getters';
import * as actions from './actions';
import mutations from './mutations';
Vue.use(Vuex);
export default new Vuex.Store({
state: {
something
}
})
Please any help. Thanks
Uncaught Error: [vuex] must call Vue.use(Vuex) before creating a store instance.