nuxt: Vue packages version mismatch

I get the following error while using alpha.4 of nuxt:

[..]\node_modules\vue-server-renderer\index.js:8
  throw new Error(
  ^

Error:

Vue packages version mismatch:
- vue@2.4.1
- vue-server-renderer@2.3.4
This may cause things to work incorrectly. Make sure to use the same version for both.
<div align="right">This question is available on Nuxt.js community (#c943)</div>

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (3 by maintainers)

Most upvoted comments

Hey @markhaehnel . This problem will be fixed soon. For now, please explicitly define dependencies in youe package.json:

"dependencies": {
 "vue": "2.3.4",
 "vue-server-renderer": "2.3.4",
 "vue-template-compiler": "2.3.4",
}

after updating nuxtjs to 1.4 .2 i get this when runing dev

Vue packages version mismatch:

  • vue@2.5.16
  • vue-server-renderer@2.5.17

I can report the exact same behavior as @IamManchanda describes.

Yes , i guess i just changed package.json to have both with the same version instead of this

  • vue@2.5.16
  • vue-server-renderer@2.5.17

make sure to have this

  • vue@2.5.16
  • vue-server-renderer@2.5.16

Not the best but it works

2018-08-30 6:29 GMT+01:00 zzleomar notifications@github.com:

@ramstein74 https://github.com/ramstein74 Did you solve it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuxt/nuxt.js/issues/1084#issuecomment-417194565, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJ56j_mUvEF3_K1k-nyYeb_CMVUkQ_zks5uV3g_gaJpZM4OYF5C .

npm i vue@latest -s

On Sat, Aug 11, 2018 at 4:40 PM besnikh notifications@github.com wrote:

@ALL https://github.com/ALL is there any solution to this I am getting the same error after upgrading to nuxt 1.4.2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nuxt/nuxt.js/issues/1084#issuecomment-412297332, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAwA7eMvqRaAVrwRb5RTgFzpV3w94Nxks5uPzM9gaJpZM4OYF5C .

Happened with v2.5 too Here I report 2.5

PS: Can’t share whole screen/all commands as came in a professional project instead of open source

Have used this comment to correct the same

screen shot 2018-05-17 at 10 45 18 pm

@zhanziyang Please use 1.0.0-rc3 witch comes with vue@2.4.1

Yeah, I know. Safest way, heavily tested. $ATTRS and $LISTENERS, guys!!! )

I’ve just run into the similar issue, badly wanting Vue 2.4.1’s $attrs and $listeners for HOC and realizing Nuxt is weirdly still dependant on 2.3.4. Just changing dependencies in package.json of your project does not help at all to change nuxt’s own dependencies. Using npm shrinkwrap with manual changes does, though.