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

this.child.stdin.setEncoding is not a function w/ Bun #138

Open
dillonstreator opened this issue Aug 15, 2024 · 2 comments
Open

this.child.stdin.setEncoding is not a function w/ Bun #138

dillonstreator opened this issue Aug 15, 2024 · 2 comments

Comments

@dillonstreator
Copy link

Running the following program with Bun:

import say from "say";

say.speak("testing");

Result in the error:

30 | 
31 |     let { command, args, pipedData, options } = this.buildSpeakCommand({ text, voice, speed })
32 | 
33 |     this.child = childProcess.spawn(command, args, options)
34 | 
35 |     this.child.stdin.setEncoding('ascii')
                          ^
TypeError: this.child.stdin.setEncoding is not a function. (In 'this.child.stdin.setEncoding("ascii")', 'this.child.stdin.setEncoding' is undefined)

oven-sh/bun#11011 (comment)

@UnknownCoder404
Copy link

Same issue

@one0410
Copy link

one0410 commented Dec 19, 2024

my solution is commenting line 35, 36 in base.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants