Quasar: vue 2.6.11 causes errors

Created on 14 Dec 2019  ·  9Comments  ·  Source: quasarframework/quasar

Describe the bug
There are errors while compiling after updating vue to 2.6.11

Module build failed (from ./node_modules/vue-loader/lib/index.js):
  TypeError: Cannot read property 'parseComponent' of undefined

  - parse.js:14 parse
    [@vue]/component-compiler-utils/dist/parse.js:14:23

  - index.js:67 Object.module.exports
    [vue-loader]/lib/index.js:67:22

To Reproduce

  1. update vue to 2.6.11
  2. then run quasar dev

Expected behavior
No errors

Platform (please complete the following information):
OS: Win10 x64
Node: 12.13.0
NPM: 6.13.2

Additional context
https://github.com/vuejs/vue/releases/tag/v2.6.11

Bump vue-server-renderer's dependency of serialize-javascript to 2.1.2

bug

Most helpful comment

A sounding “Yes!”. And upgrade to q/app v1.4.1 which has latest vue packages anyway.

All 9 comments

You must upgrade vue-loader (and vue-template-compiler if you use templates) also to keep them in sync.

thanx
strange that these packages didn't be updated while npm update

@matro-skin

Do NOT manually install vue & co packages. These come along with "@quasar/app". Installing by your own can potentially blow up the stability of your app.

Should I remove all these packages from json?

A sounding “Yes!”. And upgrade to q/app v1.4.1 which has latest vue packages anyway.

I'm trying to upgrade to quasar 1.6.0 but struggling to get everything working properly.

I'm not requiring any core vue or vue-loader packages in my own package.json, but I have a couple of components (necessary for my app) directly requiring Vue 2.6.11 that is causing the dev build to fail with the error: Module build failed (from ./node_modules/vue-loader/lib/index.js): TypeError: Cannot read property 'parseComponent' of undefined

Would anyone have suggestions for workarounds?

@MintyOrb It doesn't matter. Just don't install vue yourself.

@rstoenescu, I'm not installing vue myself...vue and associated core packages do not appear in my own package.json but the issue persists. It's the third-party components that appear to be requiring vue directly...and it isn't clear to me how to override or side-step that.

@MintyOrb if you're using npm, try to flatten the node_modules. Recommended way to go is with yarn though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slowaways picture slowaways  ·  3Comments

Bangood picture Bangood  ·  3Comments

danikane picture danikane  ·  3Comments

victorborgaco picture victorborgaco  ·  3Comments

adwidianjaya picture adwidianjaya  ·  3Comments