Questions tagged [electron-rebuild]
24 questions
0
votes
0 answers
TypeError - Unable to Load Preload Script in Electron: The URL must be of scheme file
When updating the npm package "handbrake-js" in an Electron application, an error occurs while attempting to load the preload script. The error message states that the URL must be of scheme file. The issue prevents the preload script from being…

dnlosm
- 1
0
votes
1 answer
Using electron-rebuild "fatal error: bits/libc-header-start.h: No such file or directory"
This issue is very similar to "fatal error: bits/libc-header-start.h: No such file or directory" while compiling HTK, however it occurs during Electron package rebuilding on linux:
┌──(kali♥kali)-[~/Desktop/.../NodeJs/Terminal] 10:51
└─$ node…

krysto
- 211
- 5
0
votes
0 answers
Electron rebuild native module fails on Linux
Postinstall script on is set to electron-rebuild better-sqlite3 on gitlab runner CentOS and it fails. I tried running directly node-gyp command to rebuild with no success. On windows got this working.
node - v14.20.1
electron - v13.1.8
node-gyp -…
0
votes
1 answer
"electron-rebuild" breaks running "react-scripts test" i.e. Jest
react-scripts test runs on Node and my app runs on Electron's compiled version of Node.
Thus I get the classic error:
The module '.../better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 103. This…

Molten Ice
- 2,715
- 1
- 27
- 37
0
votes
0 answers
An unhandled error occurred inside electron-rebuild. Could not find any Visual Studio installation to use
I am trying to use zeroRPC but I got this error:
electron/js2c/asar.js:140
Uncaught Error:
The module
'\\?\C:\Users\Electron\\node_modules\zerorpc\node_modules\zeromq\build\Release\zmq.node'
was compiled against a different Node.js version…
0
votes
1 answer
electron-rebuild doesn't use correct NODE_MODULE_VERSION
I'm trying to target an electron installation with version 13.4.0 and Node version v14.16.0. However, when I run electron-rebuild on my file it builds for NODE_MODULE_VERSION for 83 (used by Node 14) and not the required 89 (used by electron). Here…

ImTheSquid
- 365
- 6
- 15
0
votes
1 answer
npm rebuild, electron-rebuild doesn't use special parameters
I have an electron/React app running. So after I install all packages I have to execute electron-rebuild so there are no version issues.
I install one package in the preinstall script: npm install better-sqlite3 --build-from-source --sqlite3=my…

Laurent Dhont
- 1,012
- 1
- 9
- 22
0
votes
1 answer
Electron Packager Script Error using Electron Rebuilt
I am working with an Electron app where I used sqlite3. Because of I am using sqlite3, I rebuilt the project using "electron-rebuild" following the command:
electron-rebuild -f -w sqlite3
Then It works successfully.
After finalizing my project, I…

Takiuddin Ahmed
- 25
- 1
- 6
0
votes
1 answer
NodeJS Windows 10 geolocation module throws error in electron when the app starts
I was using module "@nodert-win10-rs4/windows.devices.geolocation" in an electronjs app which was working fine. Later I installed a node module and rebuilt all the modules. Now it stopped working and throwing error. The previous version of that…

Musa
- 3,944
- 4
- 21
- 27