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

Nx Holding process (port) when terminating the dev server process with Ctrl+C #28425

Closed
1 of 4 tasks
sacru2red opened this issue Oct 14, 2024 · 3 comments
Closed
1 of 4 tasks
Assignees
Labels

Comments

@sacru2red
Copy link

sacru2red commented Oct 14, 2024

Current Behavior

terminating the dev server process with Ctrl+C
-> can not restart why nx holding port 4200

#3348
#22358
#21838

Expected Behavior

process is terminated after pressing Ctrl+C
When you start a server again the port is available for use

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace@latest react-monorepo --preset=react-monorepo
  2. npx nx show project react-store
  3. Use Ctrl+C to stop the process
  4. re-run npx nx show project react-store

Nx Report

Node : 22.7.0
OS : win32-x64
Native Target : x86_64-windows
npm : 10.8.3

nx : 20.0.0
@nx/js : 20.0.0
@nx/jest : 20.0.0
@nx/eslint : 20.0.0
@nx/workspace : 20.0.0
@nx/devkit : 20.0.0
@nx/eslint-plugin : 20.0.0
@nx/react : 20.0.0
@nx/web : 20.0.0
@nx/webpack : 20.0.0
typescript : 5.5.4

Registered Plugins:
@nx/webpack/plugin
@nx/eslint/plugin
@nx/jest/plugin

Failure Logs

No response

Package Manager Version

10.8.3

Operating System

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

Additional Information

No response

@jaysoo jaysoo added the scope: core core nx functionality label Oct 14, 2024
@ComradeCow
Copy link

ComradeCow commented Oct 14, 2024

#28207 has additional details for a possible root cause. This has been happening since 19.8.1

@jaysoo jaysoo assigned MaxKless and unassigned Cammisuli and MaxKless Oct 15, 2024
@jaysoo jaysoo assigned MaxKless and unassigned jaysoo and Cammisuli Oct 15, 2024
@MaxKless
Copy link
Collaborator

Hello :) Thanks for the report and helping us improve Nx.
This is fixed in 20.0.2!
I'll close this issue for now, please let me know if it still happens for you or create a new issue if you run into anything else.

Thanks!

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants