使用vue-echarts在ie11下报错:
{description: "缺少 ')'", message: "缺少 ')'", name: "SyntaxError", number: -2146827282, stack: "SyntaxError...", Symbol()_10.utxw3g3j18: undefined, Symbol()_11.utxw3g3j18: undefined, Symbol()_12.utxw3g3j18
解决:
步骤1:cnpm 改为 npm, npm i echarts vue-echarts -S
步骤2:npm i resize-detector -S
步骤3:vue.config.js文件写入
module.exports = {
transpileDependencies: [
'vue-echarts',
'resize-detector',
],
}