1.出现Cannot read property ‘upgrade’ of undefined错误

解决方案一:当注释掉proxy后,再次运行项目就没问题了

解决方案二:主要是因为在vue.config.js中使用了跨域代理 ,当target为空时候,就会报错, 如下图所示

解决方案是,修改target代理地址:eg:target:'localhost:8080',即可;

 

 

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐