SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

Vuex Electron Storage is not valid, Cause the page blank; #870

Closed mxj7000 closed 5 years ago

mxj7000 commented 5 years ago

When I use the electron builder to build the package , then successfully installed in the pc, but when I run it ,run into this issue, error message:

C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vuex-electron\dist\persisted-state.js:1 Uncaught Error: [Vuex Electron] Storage is not valid. Please, read the docs. at a (C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vuex-electron\dist\persisted-state.js:1) at C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vuex-electron\dist\persisted-state.js:1 at renderer.js:12 at Array.forEach () at new y (renderer.js:12) at Object. (renderer.js:7) at d (renderer.js:1) at n (renderer.js:1) at Object. (renderer.js:7) at d (renderer.js:1) a @ C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vuex-electron\dist\persisted-state.js:1 (anonymous) @ C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vuex-electron\dist\persisted-state.js:1 (anonymous) @ renderer.js:12 y @ renderer.js:12 (anonymous) @ renderer.js:7 d @ renderer.js:1 n @ renderer.js:1 (anonymous) @ renderer.js:7 d @ renderer.js:1 n @ renderer.js:1 (anonymous) @ renderer.js:7 d @ renderer.js:1 n @ renderer.js:1 (anonymous) @ renderer.js:7 d @ renderer.js:1 (anonymous) @ renderer.js:1 (anonymous) @ renderer.js:1 C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vue\dist\vue.runtime.common.js:8087 Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools C:\Users\Administrator\AppData\Local\Programs\kaka\resources\app.asar\node_modules\vue\dist\vue.runtime.common.js:8098 You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html

notbucai commented 4 years ago

Have you solved the problem? I have encountered it, too

Gkiokan commented 2 years ago

I've found a valide fix for this error.
You can find it here in my comment: fix for Storage is not valid