Open frcoo opened 2 years ago
所用环境版本vue: 2.6.11,echarts:5.3.1,echarts-gl:2.0.8,所用组件均为按需引入: import * as echarts from 'echarts/core' import { TitleComponent, TooltipComponent, VisualMapComponent } from 'echarts/components' import { CanvasRenderer } from 'echarts/renderers' import { MapChart } from 'echarts/charts' import { Map3DChart, Bar3DChart } from 'echarts-gl/charts' import { Geo3DComponent } from 'echarts-gl/components' echarts.use([ MapChart, Map3DChart, Bar3DChart, Geo3DComponent, TitleComponent, TooltipComponent, VisualMapComponent, CanvasRenderer ]) 在本地环境调试的时候没有出现该报错,打包部署到服务器就报错了
如何解决的呢,我这儿也是同样的错误,echarts-gl:2.0.9
解决了,按需导入才会出现这个提示,import {Grid3DComponent} from "echarts-gl/components" ,导入这个,就没有提示了。
所用环境版本vue: 2.6.11,echarts:5.3.1,echarts-gl:2.0.8,所用组件均为按需引入: import * as echarts from 'echarts/core' import { TitleComponent, TooltipComponent, VisualMapComponent } from 'echarts/components' import { CanvasRenderer } from 'echarts/renderers' import { MapChart } from 'echarts/charts' import { Map3DChart, Bar3DChart } from 'echarts-gl/charts' import { Geo3DComponent } from 'echarts-gl/components' echarts.use([ MapChart, Map3DChart, Bar3DChart, Geo3DComponent, TitleComponent, TooltipComponent, VisualMapComponent, CanvasRenderer ]) 在本地环境调试的时候没有出现该报错,打包部署到服务器就报错了