Error: Component series.surface not exists. Load it first.
Error: Component series.surface not exists. Load it first.
场景:使用3D图时,报错:Error: Component series.surface not exists. Load it first.
解决办法:
1、先检查是否安装了echarts和echarts-gl
npm install echarts@4.9.0
npm install echarts-gl -S
2、在页面中引入使用
import echarts from 'echarts';
import 'echarts-gl';
3、若依就报错,检查引入的echarts写法
将路径写法:import echarts from 'echarts/lib/echarts';
改成:import echarts from 'echarts';
浙公网安备 33010602011771号