在webpack項目中使用@babel/plugin-transform-runtime時,報錯
ERROR in Error: E:\workdata\webpackVue/node_modules/_@babel_runtime@7.4.5@@babel/runtime/helpers/ typeof.js?:33
module.exports = _typeof;
^
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
- typeof.js?:33 Module.eval
[.]/[_@babel_runtime@7.4.5@@babel]/runtime/helpers/typeof.js?:33:16
- typeof.js?:34 eval
在網上查了一下,貌似是因為項目中文件語法沖突,就是import和exports語法都有,找了幾種解決方法都不行,后來安裝了另一個babel包,就沒報錯了