Nuxt.js: Vue packages version mismatch

Created on 23 Dec 2019  ยท  8Comments  ยท  Source: nuxt/nuxt.js

Version

v2.11.0

Reproduction link

https://iDontHaveItOnline.com

Steps to reproduce

I updated to the newest version of Nuxt.js and now I get this error.

Vue packages version mismatch:

This may cause things to work incorrectly. Make sure to use the same version for both.

Vue packages version mismatch:

  • [email protected]
  • [email protected]

    This may cause things to work incorrectly. Make sure to use the same version for both.

    at Object. (node_modules/vue-server-renderer/index.js:8:9)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object. (node_modules/@nuxt/vue-renderer/dist/vue-renderer.js:20:27)
    at Module._compile (internal/modules/cjs/loader.js:778:30)

    โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
    โ”‚ โ”‚
    โ”‚ โœ– Nuxt Fatal Error โ”‚
    โ”‚ โ”‚
    โ”‚ Error: โ”‚
    โ”‚ โ”‚
    โ”‚ Vue packages version mismatch: โ”‚
    โ”‚ โ”‚
    โ”‚ - [email protected] โ”‚
    โ”‚ - [email protected] โ”‚
    โ”‚ โ”‚
    โ”‚ This may cause things to work incorrectly. Make sure to use the same version for both. โ”‚
    โ”‚ โ”‚
    โ”‚ โ”‚

What is expected ?

It is expected to compile the code.

What is actually happening?

But instead it crashes with a fatal error.

bug-report

Most helpful comment

The thing that works for me is:

  • remove the lock file (package-lock.json)
  • delete the node_modules folder (this is a mandatory step for me)
  • run npm i

I am using Windows and Node 12.14.0

All 8 comments

That's a typical userland error.

There are various solutions: yarn upgrade / npm update / remove lock files + yarn or npm i

The thing that works for me is:

  • remove the lock file (package-lock.json)
  • delete the node_modules folder (this is a mandatory step for me)
  • run npm i

I am using Windows and Node 12.14.0

Have the same issue:

Error: 
Vue packages version mismatch:
- [email protected]
- [email protected]

But the _package-lock.json_ is loading 2.6.10 for Vue and the Vue Server Renderer

...
"vue": "^2.6.10",
 "vue-loader": "^15.7.1",
"vue-router": "^3.1.3",
"vue-server-renderer": "^2.6.10",
"vue-template-compiler": "^2.6.10",
...

So how would this be possible?

The thing that works for me is:

* remove the lock file (package-lock.json)

* delete the node_modules folder (this is a mandatory step for me)

* run npm i

I am using Windows and Node 12.14.0

This worked for me. thanks

It is not userland error. Npm suggested to me to run npm audit fix to fix 2 vunerabilities and after that I got the same error. Just followed the above's sugestion and the error is gone.

Npm suggested to me to run npm audit fix to fix 2 vunerabilities and after that I got the same error.

Exactly the same here. A simple npm update fixed it. (No need to remove lock file or delete node_modules folder).

I go the save issue after execute npm audit fix. And it is fixed by running npm update.

The thing that works for me is:

  • remove the lock file (package-lock.json)
  • delete the node_modules folder (this is a mandatory step for me)
  • run npm i

I am using Windows and Node 12.14.0

This worked for me. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bimohxh picture bimohxh  ยท  3Comments

vadimsg picture vadimsg  ยท  3Comments

maicong picture maicong  ยท  3Comments

bimohxh picture bimohxh  ยท  3Comments

surmon-china picture surmon-china  ยท  3Comments