umijs / qiankun

📦 🚀 Blazing fast, simple and complete solution for micro frontends.
https://qiankun.umijs.org
MIT License
15.85k stars 2.02k forks source link

子应用CDN引用vue-echarts时,无法解析资源 #1946

Closed ydobi closed 2 years ago

ydobi commented 2 years ago

子应用采用CDN方式引入vue-echarts时,报错

WX20220121-101900@2x

排查原因是qiankun改变了脚本window指向,导致无法获取VueDemi属性

WX20220121-101832@2x
github-actions[bot] commented 2 years ago

Hello @ydobi. In order to facilitate location and troubleshooting, we need you to provide a realistic example. Please forking these link codesandbox or clone qiankun examples to your GitHub repository.

你好 @ydobi, 为了方便定位和排查问题,我们需要你提供一个重现实例,请提供一个尽可能精简的链接 codesandbox 或直接 clone qiankun examples,并上传到你的 GitHub 仓库。

github-actions[bot] commented 2 years ago

Since the issue was labeled with Need Reproduction, but no response in 30 days. This issue will be close. If you have any questions, you can comment and reply. 由于该 issue 被标记为需要可复现步骤,却 30 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

992forever commented 2 years ago

子应用采用CDN方式引入vue-echarts时,报错 WX20220121-101900@2x 排查原因是qiankun改变了脚本window指向,导致无法获取VueDemi属性 WX20220121-101832@2x

你好,我也遇到同样的问题,使用import ECharts from 'vue-echarts'引用时部署后就报错,请问你最后解决了吗?