SuperMap / iClient-JavaScript

Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.
https://iclient.supermap.io
Apache License 2.0
831 stars 282 forks source link

包里面echart 报错 (急急急急急急急) #426

Closed lovesL closed 1 year ago

lovesL commented 1 year ago

Request a feature or report a bug? [这是一个需求还是一个缺陷]

image 我自己项目中也用的Echart 但是版本比较高

One-line summary [问题简述]

"@supermap/iclient-ol": "^11.1.0-beta",
"ol": "^6.14.1",
"echarts": "5.4.0",

Version [产品及版本]


Actual Behavior [当前现象]

Expected Behavior [期望现象]

Example of reproducing the issue [重现现象的例子]


What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]

luoxiao-supermap commented 1 year ago

我们这边没有重现,麻烦提供下完整重现demo

lovesL commented 1 year ago

我们这边没有重现,麻烦提供下完整重现demo

我用的5的版本 你们用的是4 的

luoxiao-supermap commented 1 year ago

解决方案(任选其一):

  1. 在 package.json 中加入如下配置,重新执行 npm install
"overrides": {
  "@supermap/iclient-common": {
    "echarts": "4.9.0"
  }
}
  1. 给@supermap/iclient-ol配置按需引入, 参考链接 开发指南-模块化开发-按需引入部分:https://iclient.supermap.io/web/introduction/openlayersDevelop.html#Modules

  2. 等下周正式版发布