ecomfe / echarts-gl

Extension pack for Apache ECharts, providing globe visualization and 3D plots.
BSD 3-Clause "New" or "Revised" License
2.61k stars 843 forks source link

生产环境控制台报错误日志:Shader not existed 着色器不存在 #448

Open frcoo opened 2 years ago

frcoo commented 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 ]) 2022-04-19_151618 在本地环境调试的时候没有出现该报错,打包部署到服务器就报错了

q1ntq1 commented 1 month ago

如何解决的呢,我这儿也是同样的错误,echarts-gl:2.0.9

q1ntq1 commented 1 month ago

解决了,按需导入才会出现这个提示,import {Grid3DComponent} from "echarts-gl/components" ,导入这个,就没有提示了。