-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
17.0.1 stopped stating up module federation remotes #19812
Comments
Hi, I tried this on my local windows machine:
There are no breaking changes for module-federation in Nx 17. Did you run |
I did run the migration. Here is the module-federation.config.ts file
|
Your import { ModuleFederationConfig } from '@nx/webpack';
const config: ModuleFederationConfig = {
name: 'host',
remotes: ['remote'], // <--- Add your remotes here
};
export default config; You need to add your remote name inside of your host |
That made a difference. Strange it worked with 16.9 without the entries. One difference still seems that now with nx serve it says starting up two remotes, but it doesn't start them in separate ports etc unless I also add |
The Nx 17 release notes says |
If you list your remote inside of your host
|
Thanks for the help and solution. Strange that it all worked with 16.9 and broke with 17.0 so something changed with latest version. |
This issue still happen, when remotes are configured dynamically with manifest file. now with Nx 17 the remotes are not detected anymore and not served too. |
Fixed by this: #19894 |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I updated from Nx 16.9.1 to 17.0.1. Before update we started our app with
nx serve myapp
and all module federaion remotes automatically started.After migration to 17.0.1 remotes are no longer started. The console shows this:
Expected Behavior
To work as with 16.9.1. I cannot see any breaking changes in the changelog.
GitHub Repo
No response
Steps to Reproduce
nx serve
Nx Report
Failure Logs
No response
Package Manager Version
yarn 3.2.4
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: