rubystarashe / nuxt-vuex-localstorage

MIT License
161 stars 18 forks source link

Cannot read property 'get' of undefined #21

Closed afoncatti closed 3 years ago

afoncatti commented 4 years ago

This error happens when the nuxt app is opened through a webview in the native script version of the app. Any hints of what is going on?

It happens on this the get method in the following line: const localPersist = JSON.parse(crypto.decrypt(storageFunction.local.get(name)))

image

rubystarashe commented 4 years ago

The environment does not seem to support localStorage and cookie.

Or there may be separate methods for accessing localStorage. If your environment supports localStorage, please let me know the specific method.

rubystarashe commented 3 years ago

this issue is fixed