File tree 1 file changed +4
-2
lines changed
packages/vue-template-compiler
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
var packageName = require ( './package.json' ) . name
6
6
var packageVersion = require ( './package.json' ) . version
7
7
if ( vueVersion && vueVersion !== packageVersion ) {
8
+ var vuePath = require . resolve ( 'vue' )
9
+ var packagePath = require . resolve ( './package.json' )
8
10
throw new Error (
9
11
'\n\nVue packages version mismatch:\n\n' +
10
- '- vue@' + vueVersion + '\n' +
11
- '- ' + packageName + '@' + packageVersion + '\n\n' +
12
+ '- vue@' + vueVersion + ' (' + vuePath + ') \n' +
13
+ '- ' + packageName + '@' + packageVersion + ' (' + packagePath + ') \n\n' +
12
14
'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
13
15
'If you are using vue-loader@>=10.0, simply update vue-template-compiler.\n' +
14
16
'If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump ' + packageName + ' to the latest.\n'
You can’t perform that action at this time.
0 commit comments