Open nmummau opened 5 years ago
Try adding the generic parameter RootState to the VuexPersistence consructor
const vuexAllModules = new VuexPersistence<RootState>({
That worked for us
I think this is a TS issue. I'm using Vue 2.6.10 and Vuex 3.1.1 with the latest version of this plugin and I have no issues.
Try adding the generic parameter RootState to the VuexPersistence consructor
const vuexAllModules = new VuexPersistence<RootState>({
That worked for us
Thanks, is simple issue, this helps me :D
Try adding the generic parameter RootState to the VuexPersistence consructor
const vuexAllModules = new VuexPersistence<RootState>({
That worked for us
Thanks worked for me too
Check also if typescript
was upgraded as well. It might be due to changes in it.
For me it helped to downgrade typescript from 3.7. to 3.4.x (3.5.x introduced this error)
I am using vuex-persist@2.0.1
I recently upgraded vue and vuex. vue@2.6.10 vuex@3.1.0
Before the upgrade I had vuex-persist working perfectly, in my typescript project, with the provided documentation. After the upgrade, I now get an error in my Store. Here is my code:
ERROR