I am trying to get my rather complicated monolithic app to work with Module Federation. My webpack config looks like that
plugins: [
new ModuleFederationPlugin({
remotes: {
"mfe1": "mfe1@http://localhost:3000/remoteEntry.js",
},
shared: {
"@angular/core": { singleton: true, strictVersion: true },
"@angular/common": { singleton: true, strictVersion: true },
"@angular/router": { singleton: true, strictVersion: true },
...sharedMappings.getDescriptors()
}
}),
sharedMappings.getPlugin(),
],
Shared is same on the Micro Frontend side. When i try to run the application i get:
Error: Unsatisfied version 11.2.1 of shared singleton module @angular/common (required ^7.2.0)
Before that i got an similar error message but for angular/core. I fixed that by rerunning yarn and fixing all the warnings produced by libraries depending on a different angular/core version.
But with the error fpr angular/common I am stuck. I have no idea how to find out which library could possibly produce that error.