nx icon indicating copy to clipboard operation
nx copied to clipboard

NX does not restart the project in "serve" mode

Open amir-khoshbakht opened this issue 1 year ago • 2 comments

Current Behavior

there is integrated monorepo with only one nestjs app in it. if I make a file that is syntactically incorrect. for exmple :

exportttt class ServeTest {

}

in that it will detect the change and will restart the app and will show this error: image but in the next change even if I correct the problem it will say: image

Expected Behavior

The server must be restarted in any case with the new changes

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace@latest serve-test --pm=yarn
  2. Create a file in path: " serve-test/apps/serve-test" with content similar to this:
exportttt class ServeTest {

}
  1. run the app: yarn nx run serve-test:serve

Note: This problem does not exist on the same system in a project with Nx version 15.9.2

Nx Report

Node   : 18.16.0
   OS     : win32 x64
   yarn   : 1.22.19
   Hasher : Native

   nx (global)        : 16.2.2
   nx                 : 16.2.2
   @nx/js             : 16.2.2
   @nx/jest           : 16.2.2
   @nx/linter         : 16.2.2
   @nx/workspace      : 16.2.2
   @nx/devkit         : 16.2.2
   @nx/eslint-plugin  : 16.2.2
   @nx/nest           : 16.2.2
   @nx/node           : 16.2.2
   @nrwl/tao          : 16.2.2
   @nx/webpack        : 16.2.2
   typescript         : 5.0.4

Failure Logs

No response

Operating System

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

Additional Information

No response

amir-khoshbakht avatar May 27 '23 09:05 amir-khoshbakht

I have the same issue. Whenever there's an error in some remote or library it terminatates the build: image

It's obviously really annorying. Let me know if you need any debug information.

JonWallsten avatar Jun 02 '23 05:06 JonWallsten

Hi, I have the same problem on windows

Filoz avatar Jun 13 '23 12:06 Filoz

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Dec 11 '23 00:12 github-actions[bot]

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[bot] avatar Jan 26 '24 00:01 github-actions[bot]