app.json中添加
plugins: {
echarts: {
version: '2.1.0',
provider: 'wx1db9e5ab1149ea03',
},
}
index.json中添加
"chart": "plugin://echarts/chart"
index.ts中引入包
import * as ec from './echarts.min';
const comp = requirePlugin('echarts');
// 设置自行引入的 echarts 依赖库
comp.echarts = ec;
项目编译报错
