RihanR
Denoβ€’3y agoβ€’
9 replies
Rihan

Certain code prevents Deno from doing anything

Any time I try and use Deno with npm:zeromq@6.0.0-beta.19, running my code has absolutely no output whatsoever, even breaking console.log() at the beginning of the file. I've tried running with a debugger but I get no output there too.

This is the module I'm trying to run, which wraps around the C library Libzmq under the hood. https://github.com/zeromq/zeromq.js

// minimal-repro.ts
// deno run --allow-all minimal-repro.ts

import * as zmq from "npm:zeromq@6.0.0-beta.19";

console.log("testing");
const sock = new zmq.Request(); // commenting this out will fix showing "testing" in console


deno 1.38.3 (release, x86_64-pc-windows-msvc)
v8 12.0.267.1
typescript 5.2.2

Edition Windows 11 Pro
Version 23H2
Installed on β€Ž09/β€Ž05/β€Ž2023
OS build 22631.2787
Experience Windows Feature Experience Pack 1000.22681.1000.0

This is my first time with Deno and I think I'm pushing the limits of npm/node compatibility right off the bat. I wanted to use Deno for my assignment to get some experience with it as it really appeals to me over Node.js.

I've attached screenshots comparing what happens when I run with/without commenting out the usage of the zeromq library.

I'm confused why I'd get no output whatsoever, with console.log() suddenly stop working.

Please suggest how I can try and run Deno more verbose/debug logs, or any other recommendations so I can get this working. πŸ™‚
uncommented.png
commented.png
GitHub
:zap: Node.js bindings to the ØMQ library. Contribute to zeromq/zeromq.js development by creating an account on GitHub.
GitHub - zeromq/zeromq.js: :zap: Node.js bindings to the ØMQ library
Was this page helpful?