Candex
Candex7mo ago

how can I make him see the process?

error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'on')
process.on('unhandledRejection', (reason) => {
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'on')
process.on('unhandledRejection', (reason) => {
2 Replies
raunioroo
raunioroo7mo ago
If you try to listen for unhandledRejection on the current process, then
globalThis.addEventListener("unhandledrejection", (event) => {
console.log(event);
});
globalThis.addEventListener("unhandledrejection", (event) => {
console.log(event);
});
If you want to listen on an actual child process, you'd need to show how you create process, since it's undefined. And then, I think you can't listen for such event from Deno.Command process, if that's what your process variable is supposed to be. Oh, it's tagged with Node Compatibility. Never mind, ignore what I just wrote :) I have no idea how it should work inside node or deno's node compat layer.
Candex
Candex7mo ago
okay
error: Uncaught (in promise) Error: Invalid WebSocket frame: invalid UTF-8 sequence
error: Uncaught (in promise) Error: Invalid WebSocket frame: invalid UTF-8 sequence
I have a new error, what does it mean? I'm writing a bot on discordjs