15,274 questions
Score of 0
0
votes
0 answers
0
answers
47 views
47
views
How to implement an mTLS client within an Electron app?
I am working on an Electron app that interacts with its backend via an API secured with mTLS.
But at our project we don't have a CA. A privkey/certificate pair was generated once and now every client ...
Advice
0
votes
0
replies
76
views
Whatsapp Automation on React + Electron Application
I need a quick suggestion from you guys, I am currently working on a react + electron desktop application. In that i need to automate messages from that app to whatsapp. Is there any suggestions.
I ...
Score of -1
-1
votes
0 answers
0
answers
84 views
84
views
Electron.js + React + Go (Fiber) build issue: React UI blank screen when backend is bundled, but works when running backend separately
I am building a desktop application using Electron.js with a React frontend and a Go (Fiber) backend.
During development (npm run dev), everything works perfectly. However, I am facing an issue when ...
Best practices
1
vote
1
replies
86
views
Safe unified channel messaging in Electron
Most examples for how to write the contextBridge.exposeInMainWorld message handling in Electron's preload.js script list one specific function name for each message, e.g. openFile. I find it more ...
Score of -3
-3
votes
1 answer
1
answer
93 views
93
views
Checking menu items fails in Electron [closed]
The code example below for a main.js Electron file successfully changes the item label of the one item in menu Menu upon item click, but not its checked status when run in Electron Fiddle. As can be ...
Score of 0
0
votes
0 answers
0
answers
390 views
390
views
How do I fix the enoent error when I start Electron in my VS Code terminal?
I have a problem with Electron start in my VS Code. By following installation guide I install the electron but have a problem with first start. When I trying to run npm run dev:electron I've got that ...
Score of 0
0
votes
0 answers
0
answers
98 views
98
views
Desktop application installer closing silently
I use electron to convert my python-flask web application into a Desktop application. As installer, I use NSIS electron builder with a custom nsis script for the customer details page.
The issue is ...
Score of 1
1
vote
1 answer
1
answer
72 views
72
views
Electron IPC response is undefined
I'm new to Electron, I'm learning how IPC works. Let me show you my code:
preload.js
import { contextBridge, ipcRenderer } from 'electron'
contextBridge.exposeInMainWorld('myApi', {
performAction(...
Advice
0
votes
1
replies
69
views
Merging and detaching tabs in Electron.js app
When I working on a project that requires multiple windows, I use the BrowserWindow() method of Electron for doing this.
My code of making the windows:
const { app, BrowserWindow, screen, ipcMain} = ...
Score of 2
2
votes
0 answers
0
answers
89 views
89
views
Electron Builder packaged app throws Cannot find module '.prisma/client/default' (Prisma + Electron + ASAR issue)
I am building a desktop application using:
Electron ^28.0.0
electron-builder ^24.9.0
Prisma ^5.8.0
Vue 3 + TypeScript
During development (electron .) everything works correctly.
However, after ...
Best practices
0
votes
0
replies
47
views
How should I handle nest npm libraries in my npm package?
I would like to create an npm library for a base electron client where consumer projects use the same shared main process/renderer/preload. And currently exposing a defineConfigs function that ...
Score of -1
-1
votes
1 answer
1
answer
168 views
168
views
Calling FindWindowW("Progman", "Program Manager") always returns a null handle
I'm using the koffi library to call Win32 APIs from TypeScript. However, I'm stuck at the very first step: FindWindowW consistently returns 0 (NULL), indicating that the Progman window cannot be found....
Score of 1
1
vote
0 answers
0
answers
96 views
96
views
Crash in Napi::Function::New(env, FunctionName) call
I am working on an Electron project with node-api (for C++ addons). The app crashes, even after a full-build. The problem that I am facing occurs within the C++ template addon that I have made.
I have ...
Score of 2
2
votes
0 answers
0
answers
103 views
103
views
How to programatically start a drag for an Electron app on X11
I've been trying to reimplement electron-click-drag-plugin for the needs of my Electron app. But I hit a hard wall when implementing it for X11. I've successfully sent the EWMH event, but it doesn't ...
Best practices
0
votes
1
replies
120
views
55% thorught Elecctron want to create specific for mobile
im a fresher Bscit student creating an managment tool application , for a company using antigravity, in halfway through the application but when i was looking for deployement , noticed electron in ...