Vue项目npm run dev 启动报错TypeError: Cannot read property ‘upgrade‘ of undefined

vue项目启动报错

TypeError: Cannot read property 'upgrade' of undefined

Vue项目npm run dev 启动报错TypeError: Cannot read property ‘upgrade‘ of undefined_第1张图片

 由于我的vue.config.js文件 里面的代理target为空导致的

Vue项目npm run dev 启动报错TypeError: Cannot read property ‘upgrade‘ of undefined_第2张图片

 修改:

结果就可以正常运行了

 

参考原文:

vue项目运行时报Cannot read property ‘upgrade’ of undefined错误_cannot read property 'upgrade' of undefined_超帅不是很帅的博客-CSDN博客 

你可能感兴趣的:(vue.js,npm,前端)