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

process.stdin.write is not a function #117

Closed
stephenh opened this issue Oct 17, 2022 · 3 comments
Closed

process.stdin.write is not a function #117

stephenh opened this issue Oct 17, 2022 · 3 comments
Labels

Comments

@stephenh
Copy link
Sponsor

Bug description

I'm running tsx in watch mode and getting this error on file changes/reloads:

TypeError: process.stdin.write is not a function
graphql-service-graphql-1  |     at process.e (/home/node/app/node_modules/tsx/dist/preflight.cjs:7:24)
graphql-service-graphql-1  |     at process.emit (node:events:527:28)
graphql-service-graphql-1  |     at process.emit (/home/node/app/node_modules/tsx/dist/suppress-warnings.cjs:1:307)
graphql-service-graphql-1  |     at Signal.callbackTrampoline (node:internal/async_hooks:130:17)

It doesn't happen every time, but maybe 50% of the time.

I'm invoking tsx watch in a docker container using node v16.15.1 and also v18.10.0:

    command: ./node_modules/.bin/tsx watch --inspect=0.0.0.0:9229 src/server.ts

Reproduction

I don't have a reproduction

Environment

System:
    OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (24) x64 12th Gen Intel(R) Core(TM) i9-12900K
    Memory: 4.89 GB / 31.09 GB
    Container: Yes
    Shell: 3.5.1 - /usr/bin/fish
  Binaries:
    Node: 18.10.0 - ~/.temp/xfs-5c32e88c/node
    Yarn: 3.2.3 - ~/.temp/xfs-5c32e88c/yarn
    npm: 8.19.2 - ~/.asdf/plugins/nodejs/shims/npm
    Watchman: 20201227.082254.0 - /usr/local/bin/watchman
  npmPackages:
    tsx: ^3.10.2 => 3.10.2 


### Can you contribute a fix?

- [ ] I’m interested in opening a pull request for this issue.
@stephenh stephenh added bug Something isn't working pending triage labels Oct 17, 2022
@privatenumber
Copy link
Owner

🎉 This issue has been resolved in version 3.10.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@privatenumber
Copy link
Owner

Thanks for the quick catch. Should be fixed in the above release.

@stephenh
Copy link
Sponsor Author

Awesome, thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants