Questions tagged [electron-rebuild]

24 questions
7
votes
1 answer

What is the difference between electron-builder and electron-rebuild?

I am trying to find out the difference between electron-builder and electron-rebuild for compiling native modules. Afaik there are these two options to compile my native module dependencies: electron-builder "Native application dependencies…
Daniel Stephens
  • 2,371
  • 8
  • 34
  • 86
4
votes
1 answer

Local native Node module causes error: Uncaught Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=75 uv=1 libc=glibc

I have a native Node addon I wrote that I'm trying to add to an Electron app. I use npm install /path/to/addon to install the addon. Then electron-rebuild and electron-build, which don't complain. But when I run npm start, in the dev console I get…
3
votes
4 answers

How to rebuild epoll package in electron?

I try to rebuild an electron app but I got this error regarding the epoll installation. Building module: epoll, Completed: 0gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load…
FaFa
  • 358
  • 2
  • 16
3
votes
2 answers

An unhandled error occurred inside electron-rebuild

I am trying to rebuild my ElectronJS application with Sqlite3, I have installed Python, VS development tools but its still gives me the error: My Package.json: { "name": "hello", "version": "1.0.0", "description": "", "main": "index.js", …
Jawad Saqib
  • 95
  • 1
  • 3
  • 10
3
votes
0 answers

electron-rebuild fails for sqlite3

I want to use sqlite in my electron application with reactjs so I flow this guid https://www.aljaiban.com/post/setting-up-electron-with-sqlite-on-windows "electron": "^7.1.2" "electron-builder": "^21.2.0" "electron-rebuild": "^1.10.0" "sqlite":…
YAGOUBI A.E.K
  • 101
  • 1
  • 4
2
votes
0 answers

Can't rebuild electron with sqlite3

I've been trying to solve this problem for over a week now, but I still can't figure out how to solve it. I want to create a database for one of my desktop apps build with electron. So I've installed slqite3 and electron-rebuild (latest version).…
MKlaassen
  • 37
  • 3
1
vote
0 answers

electron-rebuild - Error: Could not find any Visual Studio installation to use

I found many threads regarding this issue, But none of them worked for me Enviroment: Windows 10 Node v14.18.0 "electron-rebuild": "^3.2.7" I try run the command .\node_modules\.bin\electron-rebuild.cmd And get this output (I replaced the working…
ATT
  • 921
  • 3
  • 13
  • 30
1
vote
1 answer

gyp ERR! while rebuilding with electron-rebuild

I have been stuck with this error since the past 2 days. Any help will be appreciated. I am trying to rebuild the app to use serialport npm package. Node version: 14.16.1. I want to work with the package serialport alongside electron with react. But…
1
vote
0 answers

Node.js and Electron ABI Version

I am trying to use libxmljs2 for use on both (1) a simple node.js application and (2) an Electron application. So the versions I am using are the following: Electron: 11.2.0 (ABI version 85) Node.js: 12.20.1 (ABI version 72) So my problem is..…
kzaiwo
  • 1,558
  • 1
  • 16
  • 45
1
vote
2 answers

serialport for electron NODE_MODULE_VERSION error and rebuild does not fix

OS: win 10 Node.js : v12.18.3 electron: v10.1.1 print version from js program: process.versions.node 12.16.3 process.versions.modules 82 install serialport by: npm install serialport npm start and get error: Error: The module…
expressw
  • 53
  • 1
  • 10
1
vote
1 answer

Electron App -- Electron reload not working

I apologize if this is too trivial of a question, but I am new to electron and am having trouble getting electron-reload or win.reload to work on my window's Browserview. They perfectly work on the main body of the browser window, but the browser…
1
vote
1 answer

Use native node modules midi / easymidi with electron

I am trying to use the nodemodule easymidi which depends on the midi module in an electron app. When I run npm start an error occurs: Error: The module '/var/www/html/mdi/node_modules/midi/build/Release/midi.node' was compiled against a…
John
  • 536
  • 6
  • 18
1
vote
1 answer

Does localStorage get reset when I recompile native modules?

I recently had to update a native module in my electron project. Just to be sure to have a clean installation I first removed all node_modules and reinstalled them via npm install. Then I rebuilt my native module via electron-rebuild After starting…
stoefln
  • 14,498
  • 18
  • 79
  • 138
1
vote
2 answers

failed to run electron-rebuild with ffi on windows 10 (src\ffi.cc(228): error C2065: 'Handle': undeclared identifier)

I need to use module "ffi" in a node electron project. I can use "gyp" to rebuild it and use the library in node, but I cannot rebuild it using "electron-rebuild" and use it in electron. I have run: cd ./node_modules/.bin && electron-rebuild --force…
Xiaoyou Zhai
  • 103
  • 6
1
vote
2 answers

Unable to build native packages for node

So Im running an Electron app that has some native modules of one them being a package called better-sqlite3. I run yarn and yarn is able to install all packages without a problem but when it gets to the building steps, everything breaks. I get a…
Kevin Hernandez
  • 1,270
  • 2
  • 19
  • 41
1
2