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

当顶层frame中存在多个wujie依赖时,打开第一个wujie依赖提供的微应用后第二个wujie依赖提供的微应用打开报错 #955

Open
cpf23333 opened this issue Jan 23, 2025 · 0 comments

Comments

@cpf23333
Copy link

描述bug
清晰准确的描述bug

当顶层frame中存在多个wujie依赖时,打开第一个wujie依赖提供的微应用后第二个wujie依赖提供的微应用打开报错

如何复现
给出详细的复现步骤
1、第一步 以复现案例压缩包为例,四个项目安装依赖,启动
2、第二步 打开main的服务,点击切换到app1,打开控制台
3、第三步 切换到app2,会出现一个报错

问题原因是加载app1注册了wujie webcomponent,当app2加载时,检测到已经注册了组件,跳过注册逻辑,但idToSandboxCacheMap没有使用app1的,导致来自app1的wujie webcomponent组件加载app2的微应用时找不到对应的sandbox,导致报错

错误截图
如果有可以将截图带上

最小复现仓库或者地址
重要!!!,请尽量给出复现仓库,这样能极大加快bug解决速度

Image

复现案例.zip

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

1 participant