Angular upgrade with Module Federation - "Collection does not have a schematics map."

119 Views Asked by At

I'm upgrading a set of Angular applications from v12 to v16, and they use Module Federation and the Angular Architects' module federation plugin.

After upgrading each app's Angular version successfully, and going one version at a time, I run the update command for the module federation plug-in. (Eg ng update @angular-architects/module-federation@15)

I get this

An unhandled exception occurred: 
Collection "[app dir location]node_modules/@angular-architects/module-federation/migrations.json" 
does not have a schematics map.
See "/private/var/folders/m_/s6hjt4t90170wpj43zq_g_q80000gr/T/ng-yftav3/angular-errors.log" 
for further details.

What is this schematics map of which they speak?

I've tried updating @angular-eslint/schematics and @schematics/angular but they don't seem to fix the issue either.

2

There are 2 best solutions below

0
Ricudo On

Hard to say without your package.json info. You say that your angular successfully updated to v16, that means that you need "@angular-architects/module-federation: ^16.0.0". If everything else is relevant for Angular v16, the simplest solution for you might be uninstalling that pluggin and instaling its relevant version I mentioned above. If it doesn't help, you can do it manually in your package.json - just set version you want, run npm install (if any dependency problem appears you can solve it same way).

0
Tony Brasunas On

"This can safely be ignored." At least that's what Manfred Steyer has replied on my question in the library repo.

https://github.com/angular-architects/module-federation-plugin/issues/487#issuecomment-1973954145