nrwl/nx

Nx 19.8.8+ Angular MFE - lazy loaded modules in libs cause @nx/angular/mf to be loaded multiple times

gkamperis opened this issue · 1 comments

Current Behavior

@Coly010 Sorry to tag you directly but you are the expert... :)

Re opening this issue as it is still valid

#27842

Hopefully this repro still works
#27842 (comment)

but the the issue is that the nx utility file is loaded twice causing the initially populated configuration to be wiped out.
That results in errors when trying to resolve the remote module.

at line

'Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.'

The suggested workaround at the bottom of the initial issue works...

#27842 (comment)

Expected Behavior

Expect the config to be maintained and modules to be resolved correctly

GitHub Repo

No response

Steps to Reproduce

  1. Original issue has the steps

Nx Report

Nx 19.8.8

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Thanks for the tag! I'll take a look at this when I have some time, with holidays coming up I can't guarantee it will be this side of 2025.