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.

Missing vuex dependency breaks builds in quasar/app@3.0.0-rc.1

See original GitHub issue

Describe the bug In quasar/app@3.0.0-rc.1 package.json, vuex is not included. This breaks the compilation with error:

App •  ERROR  •  UI  in ./src/store/index.js

Module not found: Can't resolve imported dependency "vuex"
Did you forget to install it? You can run: npm install --save vuex

Codepen/jsFiddle/Codesandbox (required) I don’t know how to simulate a npm package.json issue on Codepen. Sorry about that.

To Reproduce Steps to reproduce the behavior:

  1. Upgrade Quasar/app to latest release candidate - I upgraded from 3.0.0-beta.1
  2. Npm install to reinstall all dependencies
  3. Run quasar dev

Expected behavior The app compiles for dev and runs.

Screenshots Error: image

My package.json image

quasar/app rc package.json image

Platform (please complete the following information): Quasar Version: 2.0.0-rc.1 @quasar/app Version: 3.0.0-rc.1 Quasar mode:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

Tested on:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

OS: Windows 10 Node: v14.17 NPM: 6.14.13 Yarn: Browsers: N.A. iOS: N.A. Android: N.A. Electron: N.A.

Additional context

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
cirolosapiocommented, Jun 9, 2021

in the v3.0.0-rc.1 release a breaking change has been introduced:

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.

1reaction
rstoenescucommented, Jun 9, 2021

@akshay-sood already did. docs are being redeployed

Read more comments on GitHub >

github_iconTop Results From Across the Web

peer dependency confilct when creating projects using vue 2 ...
ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: project_name@0.1.0 npm ERR! Found: vue@2.6.12 npm ERR!
Read more >
Installation - Vuex - Vue.js
You will have to clone directly from GitHub and build vuex yourself if you want to use the latest dev build. git clone...
Read more >
"Cannot find module '@vue/compiler-sfc/package.json ...
The commands to get it working are: yarn add vue@next yarn add @vue/compiler-sfc -D. Note the -D to add it to the devDependencies...
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