Skip to content

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

@dillonstreator

Description

@dillonstreator

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions