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

TypeError: emscrModule.TTY is undefined #6

Open
bearjaws opened this issue Apr 28, 2024 · 1 comment
Open

TypeError: emscrModule.TTY is undefined #6

bearjaws opened this issue Apr 28, 2024 · 1 comment

Comments

@bearjaws
Copy link

bearjaws commented Apr 28, 2024

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!

@jamra
Copy link

jamra commented May 30, 2024

I'm having the same issue. I'm interested in how to solve it.

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

2 participants