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)
Links to this issue
- Update dependency nuxt to ^2.17.1 (!958) · Merge requests · GitLab.org / gitlab-svgs · GitLab
- Update dependency nuxt to ^2.17.1 (!958) · Merge requests · GitLab.org / gitlab-svgs · GitLab
- Update dependency nuxt to v3 (!963) · Merge requests · GitLab.org / gitlab-svgs · GitLab
- Update dependency nuxt to v3 (!963) · Merge requests · GitLab.org / gitlab-svgs · GitLab
Hey @markhaehnel . This problem will be fixed soon. For now, please explicitly define dependencies in youe
package.json
:after updating nuxtjs to 1.4 .2 i get this when runing dev
Vue packages version mismatch:
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
make sure to have this
Not the best but it works
2018-08-30 6:29 GMT+01:00 zzleomar notifications@github.com:
npm i vue@latest -s
On Sat, Aug 11, 2018 at 4:40 PM besnikh notifications@github.com wrote:
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
@zhanziyang Please use
1.0.0-rc3
witch comes with vue@2.4.1Yeah, 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.