首页 > Web开发 > 详细

you can run: npm install --save core-js/modules/es.regexp.exec core-js/modules/es.string.replace(已解决

时间:2021-04-10 11:08:03      阅读:17      评论:0      收藏:0      [点我收藏+]
添加this.$router.replace(path)后,在运行vue过程中出现如下报错:
core-js 缺失问题,首先安装core-js :
npm install core-js@2
// or
yarn add core-js@2


发现依旧报错,考虑可能是版本问题,安装core-js的最新版本试试:
npm install core-js@3.6.4
// or
yarn add core-js@3.6.4

成功解决。
https://blog.csdn.net/weixin_42118522/article/details/107436572

 

you can run: npm install --save core-js/modules/es.regexp.exec core-js/modules/es.string.replace(已解决

原文:https://www.cnblogs.com/roak/p/14639450.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!