[Quasar v2] Error importing LocalStorage plugin
See original GitHub issueDescribe the bug
Uncaught (in promise) TypeError: quasar_src_plugins_LocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.default.getItem is not a function
Codepen/jsFiddle/Codesandbox (required) – None –
To Reproduce Steps to reproduce the behavior:
- Import LocalStore in any Vuex getters file module
- Try to get item with LocalStorage.getItem(…)
- See error
Expected behavior Get item without error
Screenshots
Platform (please complete the following information): Quasar Version: @quasar/app Version: Quasar mode: [X] SPA [ ] SSR [] PWA [ ] Electron [ ] Cordova [ ] Capacitor [ ] BEX Tested on: [X] SPA [ ] SSR [ ] PWA [ ] Electron [ ] Cordova [ ] Capacitor [ ] BEX OS: Node: NPM: Yarn: Browsers: iOS: Android: Electron:
Additional context – None –
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
[v1] `import { LocalStorage } from 'quasar' in boot file returns ...
Hello, I'm using LocalStorage in a boot file w/ v1. I get this error when trying to call getItem() "quasar_src_plugins_LocalStorage_js__ ...
Read more >Local/Session Storage Plugins - Quasar Framework
A Quasar plugin that wraps the Local/Session Storage, retrieving data with its original JS type.
Read more >Bug LocalStorage in Jest | Quasar Framework Community
Hello everyone, i'm having this bug when i try running jest in my project: TypeError: quasar_1.LocalStorage.getItem is not a function.
Read more >Quasar QSpinner module not found - Stack Overflow
Open quasar.conf.js file and look for framework components and add it there. ... Quasar plugins plugins: [ 'Loading', 'LocalStorage', ...
Read more >The Complete Guide to Vue.js User Authentication with Auth0
Populate src/auth/auth0-plugin.js with the following code that defines a Vue.js plugin module: /** * External Modules */ import Vue ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Applied same trick to Cookies also.
Figured it out. Enhancement will be available in Quasar v2.0.0-beta.10. Thanks for insisting!