#SingleSPA
共 3 篇文章
解决 Single-SPA 报错 unhandledrejection during routing 路由切换拒绝修复
排查 Single-SPA 在监听 hashchange 或 popstate 切换微前端路由时,控制台抛出 Uncaught (in promise) Error: cancel navigation 或 unhandledrejection,分析 路由守卫拦截与并发导航取消机制。
解决 Single-SPA 报错 Custom props function binding lost 函数上下文丢失修复
排查 主应用通过 Single-SPA customProps 向子应用传递通信函数(如 onGlobalStateChange)时,子应用调用报 TypeError: Cannot read properties of undefined,分析 函数上下文绑定与代理序列化。
解决 Single-SPA 报错 Application mount lifecycle timed out 挂载超时修复
排查 使用 Single-SPA 加载微应用时,控制台抛出 Single-spa: Application 'nav-app' died in status NOT_MOUNTED: mount lifecycle timed out after 3000ms,分析 异步 bootstrap/mount 函数与全局加载器。


