-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.6.1 - Vue packages version mismatch #135
Comments
Do you have |
#94 adds a dependency on vue-template-compiler for vetur. It's shrinkwrapped to 2.2.1. I guess that's what is causing the mismatch, but I'm not sure how to resolve it. (I'm also not sure why it says 2.2.6) I remember seeing that dependencies needed to be treated specially by VS Code extensions, so maybe that is the first place to look. |
I do have |
Yes, I think that's the bug. I think that |
Sorry my bad -- messed up the server versions when publishing. If you try: cd ~/.vscode/extensions/octref.vetur-0.6.1/client/server/
npm ls --depth=0 Should report But this cd ~/.vscode/extensions/octref.vetur-0.6.1/server/
npm ls --depth=0 Should report |
Can you try if this works for you? Instruction: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix |
Still get the mismatch because
|
Seems Curious what's your project doing that it has to use |
It's been a long time since I set it up, but I think the reason was that I was having version mismatches with Either way, my version of |
Note: The official webpack template (including the simple version) also includes |
I think this would probably be solved by adding |
@frankdugan3 Can you upgrade to 0.6.2 and see if that solves your problem? |
Still having the same crash, still the same version mismatch. Here's my best guess at what's happening: I did not see |
@frankdugan3 Can you post the crash log? Does it still say
So you are saying you install matching versions of |
When I specify matching versions of
|
@octref do you think it's worth adding |
@sandersn try {
var vueVersion = require('vue').version
} catch (e) {}
var packageName = require('./package.json').name
var packageVersion = require('./package.json').version
if (vueVersion && vueVersion !== packageVersion) {
throw new Error(
'\n\nVue packages version mismatch:\n\n' +
'- vue@' + vueVersion + '\n' +
'- ' + packageName + '@' + packageVersion + '\n\n' +
'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
'If you are using vue-loader@>=10.0, simply update vue-template-compiler.\n' +
'If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump ' + packageName + ' to the latest.\n'
)
}
module.exports = require('./build') Think a better way is to remove this check and include I feel it's not worth it to add |
Yes, I think copying vue-template-compiler's code is the best fix for right now. Maybe later we can contribute an improvement to vue's package structure or its version detection. |
Sounds good. From vetur's perspective:
|
I don't have time to do it right now, though. Do you have time? |
It's fine I'll do it tonight. |
Published with 0.6.3, but without the part of using |
Resolves my issue. Thank you for the hard work, this was a tricky one! |
After upgrading to 0.6.1, I am having a different issue than the other ones posted thus far. The language server crashes with this error stating the the
vue
andvue-template-compiler
are mismatched versions. I also tried removing and reinstalling the extension to update the dependencies to match, but the mismatch still happens, so it must be an issue with apackage.json
file somewhere.The text was updated successfully, but these errors were encountered: