Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

TypeError: emscrModule.TTY is undefined  #6

@bearjaws

Description

@bearjaws

Hey there,

When attempting to the use example code, compiled from source and when it runs preInit it gets the error "TypeError: emscrModule.TTY is undefined main-worker.js:47:12"

I checked and I am running the latest version of emscripten 3.1.58, building this on a Mac.

preInit: [() => {
emscrModule.TTY.register(emscrModule.FS.makedev(5, 0), {
get_char: tty => stdin(tty),
put_char: (tty, val) => { tty.output.push(val); stdout(val); },
flush: tty => tty.output = [],
fsync: tty => console.log("fsynced stdout (EmscriptenRunnable does nothing in this case)")
});

From searching around it seems like its an odd error, I searched around for others having issues with TTY and did not come up with anything. I tried both homebrew and build from source for emscripten as well.

Any help appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions