提交 48bf66f2 编写于 作者: fxy060608's avatar fxy060608

fix(cli): remove vue version check

上级 d3a6af40
try { // try {
var vueVersion = require('vue').version // var vueVersion = require('vue').version
} catch (e) {} // } catch (e) {}
var packageName = require('./package.json').name // var packageName = require('./package.json').name
var packageVersion = require('./package.json').version // var packageVersion = require('./package.json').version
if (vueVersion && vueVersion !== packageVersion) { // if (vueVersion && vueVersion !== packageVersion) {
var vuePath = require.resolve('vue') // var vuePath = require.resolve('vue')
var packagePath = require.resolve('./package.json') // var packagePath = require.resolve('./package.json')
throw new Error( // throw new Error(
'\n\nVue packages version mismatch:\n\n' + // '\n\nVue packages version mismatch:\n\n' +
'- vue@' + vueVersion + ' (' + vuePath + ')\n' + // '- vue@' + vueVersion + ' (' + vuePath + ')\n' +
'- ' + packageName + '@' + packageVersion + ' (' + packagePath + ')\n\n' + // '- ' + packageName + '@' + packageVersion + ' (' + packagePath + ')\n\n' +
'This may cause things to work incorrectly. Make sure to use the same version for both.\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, 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' // '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') module.exports = require('./build')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册