esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

stdout of spawned child closes

Open lordnox opened this issue 1 year ago • 0 comments

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/[email protected]/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: https://github.com/evanw/esbuild/blob/d34e79e2a998c21bb71d57b92b0017ca11756912/lib/npm/node.ts#L286

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

lordnox avatar Sep 27 '24 09:09 lordnox