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.

VueX not available in Quasar v2-rc1

See original GitHub issue

Describe the bug I just updated from Quasar v2 beta to Quasar v2-rc1 (using quasar upgrade -i). I started seeing the following error when running quasar dev:

TS2307: Cannot find module 'vuex' or its corresponding type declarations.

I have been using VueX in the previous beta without any issues. When running quasar info I see:

vuex - Not installed

Seems like the VueX dependency has dropped out.

Tried removing the node_modules folder and running yarn install, still nothing.

Tried adding a VueX store with quasar new store -f ts-composition savedResources, which adds the store files as expected, but still shows vuex - Not installed in quasar info.

Looking at the docs, it suggests this should be handled by the CLI. Is there something needing to be done to trigger the installation?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kei-ichicommented, Jun 7, 2021

@maggie0002 If you read the latest release note, you will know why bro:

Breaking change

Not supplying “vuex” package anymore. If using a store, please yarn add vuex@4 / npm install vuex@4. This makes sense because decoupling Vuex will allow developers to upgrade to the future Vuex 5 without us making any breaking changes.

0reactions
rstoenescucommented, Jun 9, 2021

@maggie0002 the “quasar info” command is useful when logging tickets here on Github, so it makes sense to keep it there.

On another topic, updated docs and will be available on next deployment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Vuex Store - Quasar Framework
Adding a Vuex Module is made easy by Quasar CLI through the $ quasar new command. $ quasar new store <store_name> [--format ts]....
Read more >
No vuex store detected - Quasar - Stack Overflow
I'm working on Quasar, and want to add store module. I did ran the quasar new store <name> command, but in the console...
Read more >
vuex mutations not working as expected - Quasar forum
In my vuex store file the following gives the error Error: [vuex] do not mutate vuex store state outside mutation handlers.
Read more >
State Management without Vuex (or other dependencies ...
If you've already worked on an SPA (single-page application) app without SSR (server-side rendered) with a framework like Quasar, and after you' ...
Read more >
Quasar & Vue 3: State Management, Global Components ...
In this series, I'm gonna document my journey creating a Real World Quasar Framework app from scratch. This app that will ultimately be ......
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