15,279 questions
Advice
0
votes
0
replies
50
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 ...
-2
votes
0
answers
53
views
Electron + React focus bug: input not accepting keyboard input after view transition [closed]
I have an Electron + React + TypeScript desktop app. After navigating between views (via conditional rendering, not React Router), a search input becomes unresponsive to keyboard input. Clicking ...
0
votes
0
answers
68
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
74
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 ...
-2
votes
1
answer
84
views
Checking menu items fails in Electron
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 ...
0
votes
0
answers
378
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 ...
0
votes
0
answers
87
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 ...
-1
votes
0
answers
120
views
Is there a way to associate a commit to the branch it was created on?
I am working on an Electron app which uses, among others, the simple-git module. My part of the project consists of making a program that builds a tree diagram where each node represents a commit, ...
1
vote
1
answer
70
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} = ...
2
votes
0
answers
88
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
45
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 ...
-1
votes
1
answer
162
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....
1
vote
0
answers
92
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 ...
2
votes
0
answers
99
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 ...