D
Deno

help

how can I make him see the process?

CCandex12/10/2023
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) => {
Rraunioroo12/10/2023
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.
CCandex12/10/2023
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

Looking for more? Join the community!

Recommended Posts
Importing NPM Packages in Deno Throws 'Uncaught SyntaxError' for Specific ModulesHi there, I'm relatively new to Deno. I'm running into an error with an NPM package import. ```JS imHow to override type definitions provided by a third party module@Deno AI Helper How do I override type definitions provided by a third party moduleSync Child Stdin ReadI'd like to make a JS wrapper around the repl of another language. For example: ```js let a = otherUsing custom font using fresh and tailwindcssHello ! I recently followed [this guide](https://fresh.deno.dev/docs/examples/migrating-to-tailwindwasm-vips file does not existOk this is not directly a deno thing, but anyway. Has anyone successfully used wasm-vips with `vips.update imports to latest version in `deno.json`i defined imports as URLs with the version of the packages in my `deno.json` file. i would like to kAttempt on adding ref/unref on UDPHello, issue [#20138](https://github.com/denoland/deno/issues/20138) is about `unref` not being implFresh migrating from serveTlsIn my `main.ts` file for Fresh I have some code I borrowed from source a few minor versions ago to sServing static websiteI have a static website with an index.html that imports a main.js and css file. When serving index.hpositional arguments deno taskCan I use positional arguments in deno task? I have a number of scripts that I frequently want to rLinter does not warn about lack of constructor arguments.The vscode shows that there are no arguments, but linter does not show it as an error: ``` root@instCan you make a fresh route detect, if it is being requested by `deno run`Can you make a fresh route detect, if it is being requested by `deno run` like `deno run https://loc