app vite v2 with vuex store, store not available in preFetch #17853
Unanswered
idc77
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I have this older app, which uses vuex and vuex-orm, which I upgraded from vite v1 to v2, or should I say
"@quasar/app-vite": "^2.1.1",
Its App.vue has
quasar.config.js
store/index.js
How do I make quasar with app-vite v2 work with vuex?
I don't want to rewrite everything to use Pinia and switch orm client libraries as well as the comparison module.
package.json
error in regular dev, non-ssr:
In SSR, pretty much the same.
Because store doesn't exist (is undefined) reading $db also of course fails.
What changed from v1 to v2 that vuex is no longer supported, and how do I make it supported again?
Beta Was this translation helpful? Give feedback.
All reactions