zeromq / zeromq.js

:zap: Node.js bindings to the ØMQ library
http://zeromq.github.io/zeromq.js/
MIT License
1.47k stars 212 forks source link

Electron-rebuild succeeded but require("zeromq") fails at runtime in Electron App #409

Open mikelyndersOKCC opened 4 years ago

mikelyndersOKCC commented 4 years ago

Describe the bug

Hello, I am trying to use zeromq in the render process of an electron application. My understanding is that I need to rebuild it for electron. I think I went through the proper steps (see below) but I still get the following error in the electron dev tools console:

Error: No native build was found for platform=browser arch=javascript runtime=electron abi=undefined uv= libc=glibc node=undefined webpack=true

Any ideas?

Reproducing

in electron app

Expected behavior I expected no errors in the console and the line const zmq = require("zeromq"); to succeed in the render process of an electron app.

Tested on

shirik534 commented 3 years ago

@mikelyndersOKCC, I have the same problem. Did you manage to solve it?

mikelyndersOKCC commented 3 years ago

@shirik534 No. I ended up going a different direction with my application and Zero MQ became no longer necessary.