My main goal is to develop a shell application acting as a dashboard without routing, featuring multiple cards with remote content (microfrontend standalone component).
I have been following a tutorial that aligns closely with my requirements: .
The reason I chose this tutorial is because other guides focused on routing, which involved specifying paths for each standalone component and loading only one module defining the routes.
My objective is to have a shell application capable of loading components from different remotes at runtime (based on a JSON file downloaded via HTTP).
I am utilizing the latest @angular-architects/module-federation(16.0.4) package with Angular v16. I have forked Manfred Steyer’s work to illustrate my issue: https://github.com/zkristof97/module-federation-with-angular-dynamic-workflow-designer
If a component does not require any dependencies, the exposed standalone component can be used in the shell easily, such as the EnrichComponent.
However, when I introduce an injectionToken in bootstrap.ts (e.g. MY_TEST_INJECTION_TOKEN) and attempt to utilize the EnrichComponent in the shell with the injected token, I encounter a NullInjectorError. https://i.sstatic.net/PMmRQ.png