在基于vue的项目开发中,配置vue.config.js后运行报错
Starting development server...
10% building 2/2 modules 0 active ERROR TypeError: Cannot read property 'upgrade' of undefined
npm run serve报错情况
出现这种情况是因为vue.config.js中devServer设置了proxy,但target为空,将target设置一个地址即可。
版权声明:本文为weixin_41127362原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。