You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

基于native-federation的Angular微前端导航时出现NG0203错误求助

Angular Native Federation微前端导航触发NG0203错误的解决方案

问题场景

按照angulararchitects.io文档构建基于Native Federation的微前端应用,在通过菜单项导航至远程应用时,反复出现以下错误:

Error: NG0203 inject() must be called from an injection context

部署后的应用中,远程应用导航路径示例:/mf-with-native-federation/mf-a/

已解决状态

该问题已完成修复,完整的修复实现可参考项目代码仓库。

内容的提问来源于stack exchange,提问作者L. Kvri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 05:37:02