-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Sometimes nx run-many --parrallel --target=build
command crashes due NX Daemon Server
#18962
Comments
hey @NaumovEvgeniy do you have a repo I can pull down that shows this happening? |
Having the same issue with the same node and npm version. Unfortunately don't have any public repo to share. |
After downgrading to 16.6.0 the Daemon doesn't crash anymore. Starting with 16.7.0 the issue seems to arise. |
How many libraries are dependencies on the app that's being built? Are they buildable libraries if there are any? Having some kind of a minimal reproduction would be very helpful for me, because I can't reproduce this locally 😮 |
It seems to be related to vitest and running the tests in parallel. Running the tests with parallel=1 prevents the Daemon from crashing. |
Just investigated this in our project. Judging from the logs we were running into the same issues as you @NaumovEvgeniy. You're likely using a
This works fine when running In order to solve this we actually changed
This will make sure your Vite config can be executed directly using ESM, which prevents the .mts files from being transpiled when running your Nx targets. |
hmm. Ok, I'll give it a shot with vitest and see whats up. |
Guys, thanks for help, but I have switched to another project and I can't track this issue |
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. |
Current Behavior
I have two apps:
front
(vue3) andbackend
(nest)I want to build all of them. Exec
nx run-many --parallel --target=build --skip-nx-cache
. Sometimes build is passed, sometimes build throws an errorThe
daemon.log
was attacheddaemon.log
Separately call of build tasks completes successfully
Expected Behavior
Successful build all of applications
GitHub Repo
No response
Steps to Reproduce
nx run-many --parrallel --target=build
Nx Report
Failure Logs
No response
Package Manager Version
npm 9.5.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: