Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frcoo opened this issue Apr 19, 2022 · 2 comments
Open

Comments

@frcoo
Copy link

frcoo commented Apr 19, 2022

所用环境版本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
Copy link

q1ntq1 commented Sep 16, 2024

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

@q1ntq1
Copy link

q1ntq1 commented Sep 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants