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

BUG:@supermap/iclient-common 包依赖echarts4.x版本但是package.json中没有声明该依赖 #434

Closed
lilu0826 opened this issue Jul 18, 2023 · 3 comments

Comments

@lilu0826
Copy link

image

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

One-line summary [问题简述]:

@supermap/iclient-common 包依赖echarts4.x版本但是package.json中没有声明该依赖,导致项目在使用时必须安装4.9版本echarts不能使用5.x版本echarts

Version [产品及版本]

  • iClient product (for leaflet,for openlayers,for mapboxgl,classic)[iClient 产品]: openlayers
  • iClient version [iClient 版本]:11.1.0-beta
  • Browser version [浏览器类型和版本]:chrome latest
  • OS Version [操作系统类型和版本]: windows 11

Actual Behavior [当前现象]

当项目使用echarts5.x的时候,webpack打包时会提示错误,错误语句为上诉图标位置,问题原因为@supermap/iclient-common 包依赖echarts4.x版本但是package.json中没有声明该依赖

Expected Behavior [期望现象]

@supermap/iclient-common 在package.json中声明echarts4.x依赖,项目能正常使用echarts5.x

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

webpack项目中安装echarts5.x,导入使用@supermap/iclient-ol,webpack报错。

@lilu0826
Copy link
Author

image

@lilu0826
Copy link
Author

image

@songyumeng
Copy link
Member

参考#426的解决办法
11.1.0正式版npm已发布,可以使用这个版本

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