Nuxt.js: Update to Vue v2.5.0+

Created on 13 Oct 2017  Â·  17Comments  Â·  Source: nuxt/nuxt.js

Vue 2.5.1 was released last night. Can the dependency in NUXT be updated?

This question is available on Nuxt.js community (#c1663)

Most helpful comment

And Vue 2.5.2 was released.

All 17 comments

And Vue 2.5.2 was released.

Can we just add greenkeeper to keep our packages updated?

Actually a new version of Vue can bring some breaking changes, that’s why we want to make sure it’s fully compatible before releasing a new version.

Next release coming will have Vue 2.5!

@Atinux
Yes, I fully expect thorough testing to come with it.

We were waiting on the "default" feature in provide/inject to be released in 2.5.0+, but currently blocked by NUXT from upgrading; don't mean to rush any work but do you have a ballpark date?

If you can't wait you can manually update all the dependencies using the "resolutions" field.
In your package.json:

"resolutions": {
  "nuxt/vue": "^2.5.2"
}

You'll most likely get a warning that vue has a version mismatch so you'll have to add all of those updated dependencies into the resolutions field until it works. This is also assuming you're using yarn over npm install

@JamieLottering Are you sure that's a real property? It's not documented and it didnt work

@hirokiosame That's because it's not an NPM feature, it's a yarn feature

https://yarnpkg.com/en/docs/selective-version-resolutions

@JamieLottering Oh sorry I overlooked that. Thank you!

@Atinux any chance to see rc-12 sometimes soon to make use of the vue 2.5 features? Thanks!

Just FYI if you want to use this now with npm rather than yarn you can simply use the git URL and commit hash.

"dependencies": {
    ...
    "nuxt": "https://github.com/nuxt/nuxt.js#<hash>",
    ...
}

Use this in your dependencies and then npm i and you should be set. As of this writing, the current hash is de2b0a6d5619c5f5334a289ac3287e1ee838b9bc but it'll obviously change as more commits are added.

Note that the commit hash is important because without it you won't get the dev branch.

@cliffrowley
Does installing the dev branch work for you? I was under the impression it wouldn't because it doesn't come with distribution files.

Seems to be working just fine for me - are you having issues?

On Sun, 19 Nov 2017 at 15:42 Hiroki Osame notifications@github.com wrote:

@cliffrowley https://github.com/cliffrowley
Does installing the dev branch work for you? I was under the impression it
wouldn't because it doesn't come with distribution files.

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

I can confirm that using GitHub dependency won't work as we need dist files! https://github.com/nuxt/nuxt.js/issues/1851#issuecomment-336948759 is probably this best temporary solution.

shrug I must have been dreaming the past week then...

@cliffrowley I think that's working for you because doing an extra npm install/build inside node_modules/nuxt?

@pi0 nope, I literally just changed my package.json, ran npm i and carried on. I'm using nuxt with express, so maybe that makes a difference? Everything works just fine.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VincentLoy picture VincentLoy  Â·  3Comments

gary149 picture gary149  Â·  3Comments

uptownhr picture uptownhr  Â·  3Comments

shyamchandranmec picture shyamchandranmec  Â·  3Comments

nassimbenkirane picture nassimbenkirane  Â·  3Comments