echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] 制作任意3D图都会出现警告geo3D exists

Open konipabai opened this issue 2 years ago • 12 comments

Version

5.4.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line3d-orthographic&gl=1

Steps to Reproduce

1.vite创建vue+ts项目 2.npm安装"echarts": "^5.4.1","echarts-gl": "^2.0.9" 3.引入你们的3D折线图示例代码

Current Behavior

image image

折叠部分的代码与你们示例的代码一致,结果出现警告geo3D exists

Expected Behavior

不要出现警告

Environment

- OS:window10
- Browser:Chrome 91.0.4472.77
- Framework:Vue@3

Any additional comments?

只要是3D图都会出现这个警告

konipabai avatar Mar 12 '23 10:03 konipabai

@konipabai It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] Making any 3D image will have a warning geo3D exists

BODY

Version

5.4.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line3d-orthographic&gl=1

Steps to Reproduce

  1. VITE creates the VUE+TS project 2.npm installation "echarts": "^5.4.1","echarts-gl": "^2.0.9"
  2. Introduce your 3D line chart sample code

Current Behavior

image image

The code for the collapsed section matches the code in your example, and the warning geo3D exists appears

Expected Behavior

Do not appear warnings

Environment

- OS:window10
- Browser:Chrome 91.0.4472.77
- Framework:Vue@3

Any additional comments?

This warning will appear whenever it is a 3D image

echarts-bot[bot] avatar Mar 12 '23 10:03 echarts-bot[bot]

The ECharts example you mention work correctly. It will be more appropriate to post your question about Vue issues on a Vue board.

helgasoft avatar Mar 12 '23 17:03 helgasoft

The ECharts example you mention work correctly. It will be more appropriate to post your question about Vue issues on a Vue board.

但我不使用vue,使用原生js写3D图也会出现同样的警告 But I don't use vue, and the same warning appears when writing 3D images with native js

YLIHFOGMV}(Y AH0{HJX8M1

)@M75EMZBV9YSAD$U445UDL

konipabai avatar Mar 13 '23 02:03 konipabai

打包之后发现并没出现这个警告,所以这个警告仅仅存在于开发时

konipabai avatar Apr 05 '23 10:04 konipabai

同样碰到了这个问题 , 在使用gl 绘制3d 地图时出现了 image

zmj-new avatar May 18 '23 04:05 zmj-new

我也出现这个问题警告 ,我复制官网的代码无法显示

AlenZhang1998 avatar Aug 12 '23 16:08 AlenZhang1998

bro, do you have solved this warning? I also meet this problem.

china-chen-fu avatar Oct 08 '23 06:10 china-chen-fu

bro, do you have solved this warning? I also meet this problem.

没,只能暂时忽略了,他也仅仅只是个警告,图还是正常的

konipabai avatar Oct 08 '23 09:10 konipabai

This problem occurred by 5.3.3

gaomAndximi avatar Nov 12 '23 06:11 gaomAndximi

我还以为是我 代码问题,搞了3d莫名其妙出来这个警告

minzhongshi avatar Jan 03 '24 09:01 minzhongshi

@konipabai 找到问题了,如果是全局引用就会存在这个问题,如果是按需加载就没有这个问题。初步猜测是这个包有些组件依赖了 geo3D,就自己引用了。

存在警告:

import 'echarts-gl'

解决问题:

import { init, registerMap, use } from 'echarts'
import { Lines3DChart, Map3DChart } from 'echarts-gl/charts'
import { Grid3DComponent } from 'echarts-gl/components'

use([Map3DChart, Lines3DChart, Grid3DComponent])

qwecxzpoi avatar Apr 19 '24 03:04 qwecxzpoi

@konipabai 找到问题了,如果是全局引用就会存在这个问题,如果是按需加载就没有这个问题。初步猜测是这个包有些组件依赖了 geo3D,就自己引用了。

存在警告:

import 'echarts-gl'

解决问题:

import { init, registerMap, use } from 'echarts'
import { Lines3DChart, Map3DChart } from 'echarts-gl/charts'
import { Grid3DComponent } from 'echarts-gl/components'

use([Map3DChart, Lines3DChart, Grid3DComponent])

好,谢谢老哥,等后续再用到的时候我也试试

konipabai avatar Apr 19 '24 04:04 konipabai