You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
第二次导航到子应用页面时报错Uncaught QiankunError2: application 'micro-app-eib' died in status NOT_MOUNTED: [qiankun]: Target container with #container not existed while micro-app-eib mounting! #3089
主应用是react19,子应用是react19。第一次进入子应用访问正常,第二次进入子应用时,报错提示容器dom找不到。
官方文档标注了一个关于这种容器dom找不到情况的常见问题解答,就是:
https://qiankun.umijs.org/zh/faq#application-died-in-status-not_mounted-target-container-with-container-not-existed-while-xxx-mounting
根据官方文档提出的解决办法再进行分析,现在这里没有使用vue,也没有使用路由过渡效果,只是最简单的编程式路由跳转就会报错。另外我再尝试主应用使用vue3,子应用还是同一个,发现就不会出现这种情况。
(ps:简单的编程式路由跳转,跳转子应用页面后通过浏览器回退到上一个主应用页面,再次点击跳转到子应用时出现)
主应用
日志
代码仓库:https://github.com/coderpink123/vite-react-qiankun