jc-lab
jc-lab
@andywer If you comment out ThreadsPlugin as shown below, no error will occur. That's why I think it's an issue of threads-plugin. ```javascript // plugins: [new ThreadPlugin()], ``` output: ```...
https://github.com/jc-lab/threads-plugin-problem/blob/14b7cdaf46335667902538ecd20009ce2e6812b3/package.json#L9 As shown above, `@types/node` is installed. The same code in test.worker.ts works fine with index.ts.
@andywer Please review. Thank you.
@bnoordhuis Hello, bnoordhuis. The opening file descriptor 0 is intentional. I want to use stdin and stdout via libuv. I attach the actual test code. The funny thing is that...
@bnoordhuis I also tried tty but it didn't work in all cases. If run with CreateProcess in windows or child_process in node.js, the tty will not work.
https://github.com/libuv/libuv/blob/af45b6ba2f2c506ae18dd24481e24db17b8269e7/src/win/pipe.c#L271 In the code above, I get an ERROR_INVALID_FUNCTION error. But if ignore the above error, the read to stdin will work fine.