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

Task breaks without any output with watch flag set to true. #26724

Open
jayshah123 opened this issue Jun 27, 2024 · 1 comment
Open

Task breaks without any output with watch flag set to true. #26724

jayshah123 opened this issue Jun 27, 2024 · 1 comment

Comments

@jayshah123
Copy link

jayshah123 commented Jun 27, 2024

Current Behavior

When we run a command with either --watch flag or watch: true set in our project.json for "executor": "@nrwl/rollup:rollup", configuraiton.
We see no output and command fails.
e.g. npx nx run mylibrarypackage:build --watch

Expected Behavior

There should be no issues.

GitHub Repo

No response

Steps to Reproduce

  1. Do npm i
  2. Have a package with rollup configuration with watch mode, or invoke build task with watch flag like npx nx run mylibrarypackage:build --watch
  3. It crashes saying:
> nx run mylibrarypackage:build --watch --verbose 
———————————————————————————————————————————————————————————————————————————————————————

 NX   Running target build for project mylibrarypackage failed

Failed tasks:

- mylibrarypackage:build

Hint: run the command with --verbose for more details.

Nx Report

NX   Report complete - copy this into the issue template

Node   : 18.18.0
OS     : darwin-arm64
npm    : 9.8.1

nx                 : 18.3.5
@nx/js             : 18.3.5
@nx/jest           : 18.3.5
@nx/linter         : 18.3.5
@nx/eslint         : 18.3.5
@nx/workspace      : 18.3.5
@nx/devkit         : 18.3.5
@nx/eslint-plugin  : 18.3.5
@nx/react          : 18.3.5
@nx/rollup         : 18.3.5
@nrwl/tao          : 18.3.5
@nx/web            : 18.3.5
typescript         : 5.4.5

Failure Logs

> nx run mylibrarypackage:build --watch --verbose 
———————————————————————————————————————————————————————————————————————————————————————

 NX   Running target build for project mylibrarypackage failed

Failed tasks:

- mylibrarypackage:build

Hint: run the command with --verbose for more details.


### Package Manager Version

9.8.1

### Operating System

- [X] macOS
- [ ] Linux
- [ ] Windows
- [ ] Other (Please specify)

### Additional Information

_No response_
@jayshah123
Copy link
Author

Looks like it is related to #23028, any recommendations on which version it is fixed?
Ideally patch/final versions of 18.x.y should have this fix right?

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

No branches or pull requests

1 participant