robinvdvleuten / vuex-persistedstate

💾 Persist and rehydrate your Vuex state between page reloads.
https://npm.im/vuex-persistedstate
MIT License
5.77k stars 378 forks source link

IE 11 and Vue Cli 3 #154

Closed savenko closed 6 years ago

savenko commented 6 years ago

Hello! I use Vue Cli 3 with TypeScript For this i create file:

import Vue from 'vue'; import Vuex from 'vuex'; import createPersistedState from 'vuex-persistedstate';

Vue.use(Vuex);

export default new Vuex.Store({ plugins: [createPersistedState({ storage: window.sessionStorage, })], modules: { ... }, mutations: {

},
actions: {},

});

In IE 11 i see error invalid storage instance given

robinvdvleuten commented 6 years ago

Please check the issue template:

If you try to report a bug but do not not provide a reproducible codesandbox or fiddle, 
the issue will be closed without further notice.