vue项目启动报错Uncaught TypeError: Cannot assign to read only property ‘exports‘ of object ‘#<Obj

启动vue前端项目启动成功,但是打开浏览器控制台报如下错误: Uncaught TypeError: Cannot assign to read only property ‘exports’ of object '#<Obj 如下图
vue项目启动报错Uncaught TypeError: Cannot assign to read only property ‘exports‘ of object ‘#<Obj
经判断应该是引入依赖包版本兼容性问题,删除 package-lock.json, cache clean --force 请缓存重新下载包依然存在这个问题。
解决方法:
方法1:修改根目录下的.babelrc 文件
plugins中的 transform-runtime删除或注释掉可解决vue项目启动报错Uncaught TypeError: Cannot assign to read only property ‘exports‘ of object ‘#<Obj
方法2:(待完善)