nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.16k stars 2.31k forks source link

module federation ssr devRemotes cause port in used error #22256

Closed recover758126 closed 2 weeks ago

recover758126 commented 5 months ago

Current Behavior

When I seve the host pass the args --devRemotes will cause address in use. Then my server cannot bootstrap. CleanShot 2024-03-11 at 17 37 50

Expected Behavior

This bug should be fixed.

GitHub Repo

No response

Steps to Reproduce

Just follow the document for react. https://nx.dev/recipes/react/module-federation-with-ssr#setup-module-federation-with-ssr-for-angular-and-react

Nx Report

Node   : 16.13.1
OS     : darwin-arm64
npm    : 8.1.2

nx                 : 18.0.8
@nx/js             : 18.0.8
@nx/jest           : 18.0.8
@nx/linter         : 18.0.8
@nx/eslint         : 18.0.8
@nx/workspace      : 18.0.8
@nx/cypress        : 18.0.8
@nx/devkit         : 18.0.8
@nx/eslint-plugin  : 18.0.8
@nx/react          : 18.0.8
@nrwl/tao          : 18.0.8
@nx/web            : 18.0.8
@nx/webpack        : 18.0.8
typescript         : 5.3.3

Failure Logs

No response

Package Manager Version

npm 8.1.2

Operating System

Additional Information

No response

ndcunningham commented 3 months ago

We identified the issue and are discussing about how we should address it. For now i'll assign this to @Coly010 to take a look.

Coly010 commented 2 weeks ago

Fixed by https://github.com/nrwl/nx/pull/27411 and https://github.com/nrwl/nx/pull/27345