You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running nx serve <appname> with an app generated via nx g @nx/node:application...
Almost every time I edit / save a source code file for the app, a black DOS / cmd.exe window pops up briefly, and then disappears.
Here's a screenshot I grabbed out of a video screen recording:
This makes it very hard to work on my code, because it keeps temporarily stealing keyboard focus away from my editor to the cmd.exe window, then screws stuff up because my editor missed some of the keystrokes I typed while it lost focus.
...So this appears to be a regression in Nx v16.0.0
If I check out my final commit before upgrading (which was on Nx v15.9.2) and run npm i to downgrade back to Nx v15.9.2, then the problem does not occur.
I did search through the old issues looking for something on this subject, but couldn't find anything. If anybody does, please link them.
Expected Behavior
nx serve should not do anything that could cause Windows to open a new cmd.exe window.
GitHub Repo
No response
Steps to Reproduce
Be on Nx v16.0.0
Create a new app with: nx g @nx/node:application cmdbugapp --e2eTestRunner=none (pick framework: none)
Run nx serve cmdbugapp on Windows
Open apps\cmdbugapp\src\main.ts file in any editor
Save the file to disk a bunch of times
Every once in a while you should see the black cmd.exe window pop up momentarily, like in the screenshot above. It's not always immediate, sometimes it's about 1 or 2 seconds after. And maybe it doesn't occur 100% of the time (or maybe just not always noticeable). But if you do a bunch of saves, you should see it enough.
same problem.
os : windows 8 x64
After I upgraded from version 15 to 16, I noticed that every time the file is saved, the terminal window related to the NX server flashes.
I created an empty workspace with only one empty Next.js app. By running the Next app with the nx run next:serve command, a problem is created and it is not solved even by stopping next serve command.
((next is the name of empty next app ))
then noticed a node process remains open. the node process is using is running ........../node_modules/nx /src/deamon/server/start.js
after closing the mentioned process terminal window stops flashing on each save
I see the same since updating to Nx 16;
this had been fixed previously for Nx 15 with #14965,
but moving to Nx 16, the fix was removed again (maybe at or around commit 3703846)
Is there a quickfix? Can NX_NON_NATIVE_HASHER help to fix the behavior?
Windows 10
Node.js 18.16.0 (LTS)
git 2.37.0.windows.1 (from MinGW-w64, came with GitBash)
Current Behavior
nx serve <appname>
with an app generated vianx g @nx/node:application
...cmd.exe
window pops up briefly, and then disappears.cmd.exe
window, then screws stuff up because my editor missed some of the keystrokes I typed while it lost focus.npm i
to downgrade back to Nx v15.9.2, then the problem does not occur.Expected Behavior
nx serve
should not do anything that could cause Windows to open a newcmd.exe
window.GitHub Repo
No response
Steps to Reproduce
nx g @nx/node:application cmdbugapp --e2eTestRunner=none
(pick framework: none)nx serve cmdbugapp
on Windowsapps\cmdbugapp\src\main.ts
file in any editorEvery once in a while you should see the black
cmd.exe
window pop up momentarily, like in the screenshot above. It's not always immediate, sometimes it's about 1 or 2 seconds after. And maybe it doesn't occur 100% of the time (or maybe just not always noticeable). But if you do a bunch of saves, you should see it enough.Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: