quasar: [SSR] Cannot use set() or clear() with LocalStorage on client side

Software version

Quasar: 0.17.13 OS: Linux(4.15.0-33-generic) - linux/x64 Node: 8.11.3 NPM: 5.6.0 Browsers: Chrome

The LocalStorage errors anytime I call the set() and clear() functions. It looks like the exact same problem as in this reported issue: https://github.com/quasarframework/quasar/issues/1680

I’m also using this in a store action. Although I’m using the latest version quasar. Has this just not been fixed yet?

What did you get as the error?

quasar_framework_src_plugins_local_storage_js__WEBPACK_IMPORTED_MODULE_3__.default.set is not a function

What were you expecting?

What steps did you take, to get the error?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

  1. check if you have LocalStorage in quasar.conf.js
framework: {
  ...
  plugins: [
    'LocalStorage',
    ...
  ]
}
  1. use a console.error('error:', e, LocalStorage) instead of console.log('error:', e.message) to see more details - please post here the output

  2. check the places where this login function is called, and follow the calls to identify if it’s called on server side also