Skip to content
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

Build error: listen EADDRINUSE: address already in use :::4200" error #29221

Open
itised opened this issue Dec 23, 2024 · 1 comment
Open

Build error: listen EADDRINUSE: address already in use :::4200" error #29221

itised opened this issue Dec 23, 2024 · 1 comment

Comments

@itised
Copy link

itised commented Dec 23, 2024

Which @angular/* package(s) are relevant/related to the feature request?

compiler-cli

Description

In v19, running build with the default angular.json will fail if a service is already using port 4200:

Image

Proposed solution

Have build accept a --port flag the same way that serve does.

It might also be nice if by default build used a different port

Alternatives considered

As a workaround, I moved my other running service to a different port. Not a difficult solution, but also not the most ideal.

@JeanMeche JeanMeche transferred this issue from angular/angular Dec 23, 2024
@alan-agius4
Copy link
Collaborator

How is your server.ts configured?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants