You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NivruthaB
changed the title
Query params in remoteEntry URl are not taken into account
Query params in remoteEntry URL are not taken into account
Apr 3, 2025
Current Behavior
We have a dynamic module module federation setup in our angular nx monorepo.
The host application sets the following remoteDefinitions using setRemoteDefinitions:
When we load the remote module using loadRemoteModule method, the network request is set to 'http://localhost:4201/remoteEntry.mjs?version=1234/remoteEntry.mjs'
This is because of what we have here:
nx/packages/angular/mf/mf.ts
Line 135 in 6e50a01
If the URL does not end in .mjs or .js, we add the default 'remoteEntry.mjs' keyword. But, the query params are not considered.
Expected Behavior
Query params should be considered and the request should go to 'http://localthost:4201/remoteEntry.mjs?version=1234' since the version param is important for cache busting.
GitHub Repo
No response
Steps to Reproduce
Repro steps are mentioned in the current behaviour section.
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: