-
Notifications
You must be signed in to change notification settings - Fork 239
Description
For which library do you need help?
native-federation
Question
We are experiencing a significant limitation when using @angular-architects/native-federation in a microfrontend environment where the same remote (microfrontend) is reused across multiple host applications.
In our setup, we use reusable microfrontends. The same microfrontend is integrated into different host applications within the company, and these applications may have different Angular 19 (19.x) versions.
When migrating to Native Module Federation, we have encountered a critical limitation in the resolution of shared dependencies between the host and the microfrontend. This affects all libraries or dependencies that the microfrontend may require, not just specific cases.
This issue is critical because it restricts the reuse of microfrontends in independently evolving applications and could become a blocker in real integration scenarios.
In this PR, there is a suggestion to temporarily use a library as a workaround: PR-645 comment
Within our team, the following question arises: is reusing microfrontends across applications considered a bad practice?
We understand that there is a strong relationship between Angular version and a microfrontend, which is why we only reuse a microfrontend among applications with the same Angular version. However, other dependencies may still conflict.
Not having the ability to negotiate a shared dependency using requiredVersion, strictVersion, etc., is a major limitation for our current use of microfrontends as shared components across applications.