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

加载子应用,但子应用的包不存在,会一直重复刷新加载。 #2478

Closed
haiyang01 opened this issue Apr 24, 2023 · 5 comments

Comments

@haiyang01
Copy link

haiyang01 commented Apr 24, 2023

问题:加载子应用,但是 子应用的包不存在,会一直重复刷新加载。

  • qiankun 版本:2.10.6
  • 浏览器版本:Chrome 版本 112.0.5615.138(正式版本) (64 位)
  • 操作系统:windows
@haiyang01 haiyang01 changed the title [Bug]请遵循下文模板提交问题,否则您的问题会被关闭 加载子应用,但子应用的包不存在,会一直重复刷新加载。 Apr 24, 2023
@BeMxself
Copy link

我也遇到这个问题了,有解决方案吗?

Copy link

Hello @haiyang01. 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.

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

Copy link

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,若有任何问题,可评论回复。

@linhf123
Copy link

或许是 wepback 热更新的 wss 地址对不上,可以调整下 SOCKET_SERVER 配置试试,可以用 beforeunload 阻止浏览器重新加载排查下
window.addEventListener('beforeunload', (event) => { // Cancel the event as stated by the standard. event.preventDefault(); // Chrome requires returnValue to be set. event.returnValue = 'Are you sure you want to leave this page?'; });
看看有没有类似的报错
image

参考:https://blog.csdn.net/violetjack0808/article/details/86577776

@G1King
Copy link

G1King commented Sep 4, 2024

或许是 wepback 热更新的 wss 地址对不上,可以调整下 SOCKET_SERVER 配置试试,可以用 beforeunload 阻止浏览器重新加载排查下 window.addEventListener('beforeunload', (event) => { // Cancel the event as stated by the standard. event.preventDefault(); // Chrome requires returnValue to be set. event.returnValue = 'Are you sure you want to leave this page?'; }); 看看有没有类似的报错 image

参考:https://blog.csdn.net/violetjack0808/article/details/86577776

牛逼 感谢解决了问题啊 一直没找到问题在哪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants