Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nx serve for module-federation app timeouts waiting for proxied remotes #33909

@cmcgroarty

Description

@cmcgroarty

Current Behavior

serving a module federation host timeouts waiting on static remote proxies adding minutes to the startup

[email protected]: yarn nx serve dashboard --verbose 17.93s user 2.36s system 6% cpu 5:03.66 total

Expected Behavior

serving the host does not timeout starting the static remote proxies or take multiple minutes to start serving

[email protected]: yarn nx serve dashboard --verbose 0.55s user 0.14s system 2% cpu 23.772 total

GitHub Repo

https://github.com/cmcgroarty/ng-mf-serve-slow-timeout

Steps to Reproduce

  1. clone the repo
  2. run yarn to install dependencies
  3. run nx serve dashboard --verbose
  4. notice the long wait on starting static remote proxies and timeouts

Nx Report

Node           : 24.12.0
OS             : linux-x64
Native Target  : x86_64-linux
yarn           : 4.12.0

nx                     : 22.3.0
@nx/js                 : 22.3.0
@nx/eslint             : 22.3.0
@nx/workspace          : 22.3.0
@nx/angular            : 22.3.0
@nx/devkit             : 22.3.0
@nx/eslint-plugin      : 22.3.0
@nx/module-federation  : 22.3.0
@nx/rspack             : 22.3.0
@nx/web                : 22.3.0
@nx/webpack            : 22.3.0
typescript             : 5.9.3
---------------------------------------
Community plugins:
angular-eslint : 21.1.0
---------------------------------------
Cache Usage: 14.95 MB / 100.69 GB

Failure Logs

NX  Starting static remotes proxies...

Connecting on localhost:4201
Error connecting on localhost:4201: ETIMEDOUT
Connecting on localhost:4202
Error connecting on localhost:4202: ETIMEDOUT

 NX  Static remotes proxies started successfully


 NX  All remotes started, server ready at http://localhost:4200

Package Manager Version

No response

Operating System

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

Additional Information

My guess is this is a result of #33871 that was released in v22.2.4 as v22.2.3 does not have this lengthy serve time

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions