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

请教~ new EChartsLayer 报错怎么回事 #115

Closed
wangbingbingaaa opened this issue Apr 20, 2023 · 8 comments
Closed

请教~ new EChartsLayer 报错怎么回事 #115

wangbingbingaaa opened this issue Apr 20, 2023 · 8 comments

Comments

@wangbingbingaaa
Copy link

image
image
image

"ol": "^7.3.0",
"ol-echarts": "^3.0.0",
"react-dom": "^18.2.0",
"echarts": "^5.4.2",

@rolitter
Copy link

rolitter commented May 8, 2023

你好,最后你是怎么解决的?

@ComingB
Copy link

ComingB commented May 12, 2023

我是把ol版本降到"ol": "^6.9.0",解决的,你们可以试试

@rolitter
Copy link

我是把ol版本降到"ol": "^6.9.0",解决的,你们可以试试

好的,灰常感谢

@hy31337
Copy link

hy31337 commented May 13, 2023

同问,请问什么时候能否支持 "ol": "^7.3.0", @sakitam-fdd

@sakitam-fdd
Copy link
Owner

@hy31337 晚点吧,目前还没计划,因为 ol 好久没用了,还得去研究源码。或者咱们有时间可以来个 PR 😄

@zapzqc
Copy link

zapzqc commented Jul 6, 2023

这是由于将Class转为ES5导致的。
@sakitam-fdd
已提交PR #116

@sakitam-fdd
Copy link
Owner

@zapzqc @hy31337 @rolitter @wangbingbingaaa 感谢 @zapzqc 的 PR,这个问题我追踪了一下,主要是由于 ol 版本从 6 开始完全转为了 class 语法(编译后的),详见 V7V6,如果要修改的话可能需要做大版本升级

@sakitam-fdd
Copy link
Owner

sakitam-fdd added a commit that referenced this issue May 24, 2024
sakitam-fdd added a commit that referenced this issue May 24, 2024
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

6 participants