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
ERROR
application 'backend' died in status LOADING_SOURCE_CODE: [qiankun]: Target container with #backend not existed while backend loading!
Error: [qiankun]: Target container with #backend not existed while backend loading!
at assertElementExist (http://localhost:12346/main.js:13035:19)
at render (http://localhost:12346/main.js:13156:13)
at _callee17$ (http://localhost:12346/main.js:13245:21)
at tryCatch (http://localhost:12346/main.js:36134:24)
at Generator.<anonymous> (http://localhost:12346/main.js:36221:25)
at Generator.next (http://localhost:12346/main.js:36162:29)
at asyncGeneratorStep (http://localhost:12346/main.js:47476:21)
at _next (http://localhost:12346/main.js:47488:17)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
最近打算写一个qiankun+rspack的模板
环境: Chrome 133.0.6943.143
构建工具:rspack
最小复现实例: https://github.com/lixiaowei11111/qiankun_demo
如官方文档推荐,子应用跳转到其他子应用的三种方式

在start.opts.prefetch默认为true的情况下
这边有子应用Flow,在进入Flow应用页面时同时加载了子应用Backend的资源,但是通过Flow页面中的按钮使用history.pushState跳转到子应用Backend时,会显示错误未查到到对应容器,如下:
各个应用的publicPath配置无问题;各子应用单独访问也是正常的
当设置prefetch:false时,使用history.pushState跳转到Backend是生效的,感觉像是主应用的router实例在URL变化时未触发逻辑,但是并不太理解为什么关闭预加载就可以正常跳转了,希望大佬可以帮忙看一下我的问题
我目前的解决方案是避免在子应用中使用history.pushState,而是所有的跨应用跳转都需要调用主应用的router实例方法来跳转
Beta Was this translation helpful? Give feedback.
All reactions