sourceType: 'unambiguous'一行代码解决报错Cannot assign to read only property 'exports' of object '#<Object>'
vue前端页面报错
Cannot assign to read only property 'exports' of object '#<Object>'
JavaScript 中遇到报错"TypeError: Cannot assign to read only property 'exports' of" 。通常是在 Node.js 环境中,使用 ES6 模块(使用 import 和 export 语句)时报错。

解决方法
在文件babel.config中添加
sourceType: 'unambiguous'
