question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vuedevtools vuex tab does not work via `quasar build`

See original GitHub issue

Describe the bug

If you browse a prod SPA app built with quasar build, the vuex tab of vuexdevtools will not work. You get the message No vuex store detected, whereas in a vanilla VueJS build it works.

Codepen/jsFiddle/Codesandbox (required) It is not possible to demonstrate this bug on these platforms. The bug ONLY OCCURS if you quasar build and then serve that via a web server and browse to it that way. None the less I’ve shown the code required here: https://codesandbox.io/s/vuedevtools-vuex-tab-setup-31v4l

To Reproduce

  1. In both vanilla Vue and Quasar it’s possible to set up vuedevtools to work on prod. (i.e. quasar build). In vanilla vue, you just need the Vue.config.devtools. In Quasar this requires a boot file like this:
import { boot } from "quasar/wrappers";
export default boot(({ Vue }) => {
  Vue.config.devtools = true;
});
  1. Then this must be enabled in quasar.conf.js:
    boot: ['devtools'],
  1. Enable the default vuex store by uncommenting lines 4 & 20 in src/store/index.js
  2. Add some state to the store in src/store/example/state.js
  3. Then you need to build it: quasar build
  4. Then you need to serve that via a web server (exercise for reader)
  5. Then browse to it
  6. Open devtools, click vue tab to get vuedevtools
  7. Click on the vuex tab in vuedevtools
  8. Click on the Base State mutation to load the state into the vuex viewer.

Expected behavior It should show the vuex state

Screenshots Two screenshots. One shows it working via localhost (i.e. via quasar dev) The other shows it not working via quasar build Screenshot 2020-10-16 at 14 56 15 Screenshot 2020-10-16 at 14 55 59

Platform (please complete the following information): OS: Mac OS Catalina 10.15.7 Node: v12.6.0 NPM: 6.14.8 Yarn: 1.22.4 Browsers: Chrome Version 86.0.4240.80 (Official Build) (x86_64) iOS: N/A Android: N/A Electron: N/A

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Oct 20, 2020

Those who’ve upgraded to q/app v2.1.2, please do a quick upgrade to v2.1.3. process.env.DEBUG should be process.env.DEBUGGING.

0reactions
hawkeye64commented, Oct 20, 2020

Fix will be in @quasar/app v2.1.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

google chrome - Vue.js devtools not showing - Stack Overflow
[EDIT]: Adding another case I experienced, when the Vue tab does not show up in Chrome's Devtools: load the page without Devtools open...
Read more >
Troubleshooting and Tips | Quasar Framework
Some Chrome DevTools Extensions do not play well with Windows Dark Theme on electron 6+. Quasar offers a workaround in the default electron-main.js...
Read more >
Using Vue Devtools with Vue.js 3 - Vue School
Using Vue Devtools with Vue.js 3. The Vue Devtools is an invaluable browser extension to Chrome and Firefox that will speed up your...
Read more >
No Vuex Store Detected - Quasar - ADocLib
I just moved from Vue 2 to Vue 3 the Vue dev tools plugin stopped detecting my app, so i installed I cannot...
Read more >
Installation | Vue Devtools
Make sure you import devtools before Vue, otherwise it might not work as expected. And connect to host: if (process.env.NODE_ENV === ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found