vuex-electron
vuex-electron copied to clipboard
[Vuex Electron] Storage is not valid
Could you at least provide some error or description here?
I got the same error. It seams to drop error while running checkStorage.
After print the catch log I got this
@talfwin if you try set the storageName
do you still get this issue?
import { createStore } from 'vuex';
import { createPersistedState, createSharedMutations } from 'vuex-electron';
export default createStore({
state: {
},
mutations: {
},
getters: {
},
actions: {
},
modules: {},
plugins: [
createPersistedState({
storageName: 'somename',
}),
createSharedMutations(),
],
});
This error happens only on windows. I am facing the same Issue and it is really annoying. The issue is explained here which seems to be caused by multithreading because windows runs in race condition.
You can also look into this issue #17 where an fixed repo fork exists but even with that throothling it works sometimes and sometimes not.