-
-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
Description
Describe the bug
Running into an issue on some windows computers where my installed electron app crashes on launch with an error below.
Error
A JavaScript error occurred in the main process
Uncaught Exception:
Error: The specified module could not be found.
\\?\C:\Users\Score2\AppData\Local\Temp\8be5b611-d5d9-4c07-aff0-541a9e02d5eb.tmp.no...
at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131)
at Object.<anonymous> (node:internal/modules/cjs/loader: 1356:18) at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2358) at Module.load (node:internal/modules/cjs/loader:1126:32)
at node:internal/modules/cjs/loader:967:12
at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18)
at load (C:\Program Files\MyApp\resources\app.asar\node_modules\@aminya\node-gyp-build\index.js:22:10) at Object.<anonymous> (C:\Program Files\MyApp\resources\app.asar\node_modules\zeromq\lib\native.js:6:51)
module.exports = require("@aminya/node-gyp-build")(path.join(__dirname, ".."));
and @aminya\node-gyp-build\index,js:21~23:
function load (dir) {
return runtimeRequire(load.path(dir))
}
I cannot figure out the difference between the working ones and non-working ones, but the trend is older laptops (2013, and 2015) running Windows 10 have the issue. No computers with Windows 11 has had the issue. Old computers with Windows 10 (2014, 2018) have also succeeded in running the app. I've had success with the only mac I own as well.
Reproducing
- Package & Distribute electron app with
electron-builderv24.13.3 - Move installer onto another computer (I have no issues on 2 of my dev computers running Win11)
- Install & Launch app with a dependency on zeromq.js 6.0.0-beta.19
Expected behavior
What happens on my dev computer, and other computers (with and without common coding dependencies installed on them) is the app boots normally after being installed and functions properly.
Tested on
- OS: Windows 10, Windows 11, macOS
- ZeroMQ.js version: 6.0.0-beta.19
Reactions are currently unavailable