Skip to content

@nx/js:node executor hangs while "watch": false option is set #27579

Open

Description

Current Behavior

Run node app serve:production target with "watch": false option set hangs at the end and shows To exit the process, press Ctrl+C before the output.

Expected Behavior

Shouldn't the process exit after execution?

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace@latest test --preset=node-standalone --framework=none --docker=false --useGitHub=false --nxCloud=skip
  2. cd test
  3. add "watch": false to the /project.json file at the targets.serve.configurations.production section
  4. run npx nx run test:serve:production

Nx Report

Node           : 20.15.1
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.7.0

nx                 : 19.6.2
@nx/js             : 19.6.2
@nx/jest           : 19.6.2
@nx/linter         : 19.6.2
@nx/eslint         : 19.6.2
@nx/workspace      : 19.6.2
@nx/devkit         : 19.6.2
@nx/esbuild        : 19.6.2
@nx/eslint-plugin  : 19.6.2
@nx/node           : 19.6.2
@nrwl/tao          : 19.6.2
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/jest/plugin

Failure Logs

No response

Package Manager Version

No response

Operating System

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

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

scope: nodeIssues related to Node, Express, NestJS support for Nxtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions