vuex-electron icon indicating copy to clipboard operation
vuex-electron copied to clipboard

[Vuex Electron] Storage is not valid

Open youdu2305 opened this issue 3 years ago • 4 comments

youdu2305 avatar Nov 25 '20 08:11 youdu2305

Could you at least provide some error or description here?

NoelDavies avatar Dec 23 '20 15:12 NoelDavies

I got the same error. It seams to drop error while running checkStorage. image After print the catch log I got this image

talfwin avatar Jan 15 '21 10:01 talfwin

@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(),
  ],
});

michaelmano avatar Mar 09 '21 04:03 michaelmano

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.

Gkiokan avatar Jan 08 '22 13:01 Gkiokan