Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vuex Electron] Storage is not valid #63

Open
youdu2305 opened this issue Nov 25, 2020 · 4 comments
Open

[Vuex Electron] Storage is not valid #63

youdu2305 opened this issue Nov 25, 2020 · 4 comments

Comments

@youdu2305
Copy link

No description provided.

@NoelDavies
Copy link

Could you at least provide some error or description here?

@talfwin
Copy link

talfwin commented Jan 15, 2021

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

@michaelmano
Copy link

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

@Gkiokan
Copy link

Gkiokan commented Jan 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants