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

stdout of spawned child closes #3927

Open
lordnox opened this issue Sep 27, 2024 · 0 comments
Open

stdout of spawned child closes #3927

lordnox opened this issue Sep 27, 2024 · 0 comments

Comments

@lordnox
Copy link

lordnox commented Sep 27, 2024

Sadly I do not have a reproduction. In my codebase I have a vite service running esbuild to compile my code and I am getting an error after the first compilation step:

10:04:40 AM [vite] Internal server error: The service is no longer running
  Plugin: vite:esbuild

With a stacktrace of:

      at <anonymous> (…/node_modules/.pnpm/esbuild@0.21.5/node_modules/esbuild/lib/main.js:739:38)

Nothing here tells me why and what is happening. I traced the issue down and it looks like this line is called:

stdout.on('end', afterClose)

Somehow the std of the spawned child process is closed, this does not clean up the internal child process.

lordnox pushed a commit to lordnox/esbuild that referenced this issue Sep 27, 2024
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

2 participants