15,284 questions
Best practices
0
votes
0
replies
17
views
Should I use sequence diagrams for designing React components?
I am currently developing the following system as my graduation project.
System overview
The system is an AI-powered dynamic learning material generation app for people who have already learned the ...
-2
votes
0
answers
180
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 ...
-1
votes
0
answers
59
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
116
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, ...
0
votes
1
answer
67
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
65
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} = ...
1
vote
0
answers
66
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
43
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
157
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
91
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 ...
-1
votes
0
answers
66
views
AOA (Android Open Accessory) device Code 10 "A device which does not exist was specified" on Windows with Node.js usb package
I'm building a desktop app (Electron/Node.js) that switches an Android device into AOA mode using the usb npm package. The device successfully switches to AOA mode (VID_18D1 PID_2D00) and appears in ...
2
votes
0
answers
92
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
111
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 ...
0
votes
1
answer
54
views
Error: posix_spawnp failed. when trying to launch a Pty with node-pty
I am trying to build a simple terminal emulator with electron and node-pty.
But when the app starts, it immediately crashes with the message
(node:51806) UnhandledPromiseRejectionWarning: Error: ...
0
votes
0
answers
80
views
Enable Overlay Scrollbars in Electron app
There is a chromium flag called "overlay-scrollbar". It is supposed to re-enable css overflow: overlay.
Some websites and articles claim that this chromium flag is disabled. However, it is ...