vue項目运行时报Cannot read property ‘upgrade’ of undefined错误
1.出现Cannot read property ‘upgrade’ of undefined错误解决方案一:当注释掉proxy后,再次运行项目就没问题了解决方案二:主要是因为在vue.config.js中使用了跨域代理 ,当target为空时候,就会报错, 如下图所示解决方案是,修改target代理地址:eg:target:'localhost:8080',即可;...
·
1.出现Cannot read property ‘upgrade’ of undefined错误

解决方案一:当注释掉proxy后,再次运行项目就没问题了
解决方案二:主要是因为在vue.config.js中使用了跨域代理 ,当target为空时候,就会报错, 如下图所示

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



所有评论(0)