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
when I debug local build esbuild , I often need to set ESBUILD_BINARY_PATH to local build esbuild path, but sometimes I may set it wrongly or accidently clean esbuild, then esbuild build or transform will hang.
I found the this may be related to the following code main.js
letchild=child_process.spawn(command,args.concat(`--service=${"0.14.25"}`,"--ping"),{windowsHide: true,stdio: ["pipe","pipe","inherit"],cwd: defaultWD});let{ readFromStdout, afterClose, service }=createChannel({writeToStdin(bytes){child.stdin.write(bytes,(err)=>{if(err)afterClose();});},readFileSync: fs2.readFileSync,isSync: false,isBrowser: false,esbuild: node_exports});child.on('error',(err)=>{console.log('err:',err)// triggered when child_process failed})child.stdin.on("error",afterClose);// not triggered when child_process failedconststdin=child.stdin;conststdout=child.stdout;
It seems that esbuild doesn't handle child_process exception properly.
The text was updated successfully, but these errors were encountered:
when I debug local build esbuild , I often need to set ESBUILD_BINARY_PATH to local build esbuild path, but sometimes I may set it wrongly or accidently clean esbuild, then esbuild build or transform will hang.
I found the this may be related to the following code
main.js
It seems that esbuild doesn't handle child_process exception properly.
The text was updated successfully, but these errors were encountered: