15,339 questions
-1
votes
1
answer
44
views
Electron IPC: File objects arrive as empty objects {} in main process
Problem
I'm trying to send multiple files from the renderer process to the main process using Electron's IPC, but the file objects arrive empty.
Renderer Process:
if (files?.length > 1) {
window....
Advice
0
votes
5
replies
37
views
Generating Interactive Documentation from Javascript Source Code
I’m working on an Electron project, and I can generate JSON for my code using JSDoc:
jsdoc -X > data.json
I want to use this JSON output to create a live, searchable documentation site similar to ...
0
votes
2
answers
47
views
Electron: Alternative to navigator.geolocation.getCurrentPosition without API key? [closed]
In my Electron app, navigator.geolocation.getCurrentPosition() always fails. It seems that Electron (Chromium) no longer provides free geolocation and expects a third-party service with an API key (e....
-1
votes
0
answers
63
views
Transparent, unfocusable and clickable BrowserWindow in Electron
I am creating a button that is clickable but doesn't bring the app to the foreground. To achieve this I implemented the button as a separate BrowserWindow with focusable: false and its parent set to ...
Advice
1
vote
2
replies
61
views
Tauri or Electron js
I’m starting a new project to build an ERP POS application using the MERN stack. I’m confused about whether I should use Electron.js or Tauri to turn it into a desktop/web app. Which option is better ...
0
votes
0
answers
55
views
No app icon on Linux app with electron-builder, but shown when electron is used directly
i am programming an app with vite, svelte@4, electron and electron-builder. if i run electron ./start-electron.js the logo is shown, but after many days of trial and error i still don't get it in the ...
0
votes
1
answer
42
views
Electron-Vite App seemingly not loading preload script [closed]
I'm trying to access a local sqlite3 database using ICP. When I run the handleSubmit() function in my Login component, I receive the following error:
Uncaught (in promise) TypeError: can't access ...
0
votes
0
answers
56
views
Electron Builder: Built app starts UI but server + SQLite database do not run in packaged versio
I have an Electron application that uses:
React for the frontend
Node + Express backend inside /Server
A SQLite database stored inside the same /Server folder
During development, everything works ...
1
vote
0
answers
54
views
Generating a virtual image for an Electron application
I’m trying to replace a the content of an image URL with the result of a custom protocol. The idea is to get the data from a zip file.
The img element looks something like this:
<img src="...
1
vote
0
answers
49
views
How to properly log HTTPS (especially SSE) request responses in Electron webview without using deprecated APIs?
Here's a minimal GitHub Gist that runs on Electron Fiddle :
It's supposed to show GitHub Copilot (github.com/copilot) in a webview element as if it was in a normal browser :
Using the following code ...
0
votes
0
answers
64
views
Why drag and drop from my application is not happening to any external applications in electron
My problem:
I want to drag a file from my application into the another application like Paint , Windows Excel , Windows Files system ect, but the drop is not happening.
I have an Electron app. The ...
0
votes
1
answer
55
views
Why window.close() from renderer process doesn't trigger the close event in Electron's main process?
I'm building an Electron application and trying to close a window from the renderer process using window.close(). However, the close event listener I've registered in the main process isn't being ...
Advice
2
votes
1
replies
55
views
How does Discord reuse code for their desktop and browser apps?
I have made a web application that I want to support as an electron app. My plan was to thinly wrap my existing webapp code in an electron app and support a few small features like global hotkeys.
The ...
0
votes
0
answers
58
views
How to prevent Electron BrowserWindow from being throttled when other apps are in fullscreen on macOS?
I'm building a floating mic/system audio visualizer widget in Electron. The widget uses a panel type BrowserWindow that stays on top of all windows, including fullscreen apps.
The issue is that when ...
1
vote
0
answers
39
views
Resolving “You may need a suitable loader to handle this file type” in Electron environments
I added firebase-electron to my Vue CLI Plugin Electron Builder project using yarn, but I encountered the following error.
I'm using Webpack 4.43.0.
How can I resolve this error?
error in ./...
0
votes
0
answers
42
views
How can I prevent @electron/packager and @electron/get from downloading of SHASUMS256.txt and attempting to validate artifact?
The file electron-v38.4.0-win32-x64.zip already exists in the Electron cache directory at:
D:\sandbox\electron\Cache\170c37ecabce6b93655518bed5da6604d76afeb91dd19907c5ab5f7b83d3d891\electron-v38.4.0-...
2
votes
1
answer
67
views
"headless" playwright tests fail because button click does not work
We have some Tests for our electron node.js UI. They work fine if run on our desktops (windows and linux, even on linux via SSH and local X-Server)
But the moment they run in our Jenkins pipline they ...
0
votes
1
answer
89
views
Windows 11 build fails for Electron + Next.js: missing @img/sharp-darwin-arm64
I'm developing a project using Next.js 15.5.4 inside an Electron.js application, with the following stack:
React.js
Tailwind CSS
SQLite
On Windows 11, running npm run build (or next build) ...
0
votes
0
answers
63
views
css and js is not loading in nuxt 4 and electron js when it comes to production
i have built a desktop application using nuxt 4 and electron js, everyting is working as perfect in dev mode loadig css , js everything but when it comes to package and prod the application installs ...
0
votes
0
answers
42
views
Issue with electron forge
I am building an electron app with preact + typescript with vite tool.
below is my vite config
import { resolve } from 'path'
import obfuscatorPlugin from "vite-plugin-javascript-obfuscator";...
0
votes
0
answers
68
views
How to prevent electron app from disappearing from the taskbar in windows when listening to `window-all-closed` event in windows?
Totally as the title says:
I have an electron app ( mainly simple code as a start up track ) and I have normal createWindow function and an event listener to if all the windows are closed, if so quit ...
0
votes
1
answer
60
views
ESLint can't resolve electron specific module node:original-fs
I need this module to perform some logic with asar files. Project builds and works fine. VSCode correctly resolves node:original-fs. Only ESLint fails to resolve it:
PS C:\Users\my-project> npm run ...
0
votes
0
answers
33
views
Electron PDF download button doesn't work
I'm using electron as browser to load remote pages, when I open a PDF the default PDF viewer is opened but the file download button doesn't work and doesn't throw any error:
This is the package ...
0
votes
0
answers
78
views
electron-builder custom install path
I have the below build script:
"build": {
"appId": "com.yourcompany.gamelauncher",
"productName": "My Game",
"directories": {
...
0
votes
0
answers
40
views
Does "'electron/renderer'" directory actually exist in Electron 38?
I got the following error when tried to import { contextBridge, ipcRenderer } from "electron/renderer"; to Electron preload.
ERROR in ./ElectronPreload.ts 2:0-50
Module not found: Error: Can'...
1
vote
0
answers
65
views
What are the benefits of Eletron Preload in comparison with "Main Process + Renderer Process" pattern?
When have I used the Electron for the first time, there were only Main Process and Render Process, but the inter-process communication was available. Recently I started to use the Electron again, and
...
0
votes
0
answers
49
views
Rocket.Chat electron does not show custom notification
I have a self-hosted version of rocket.chat and I tried to slightly change it in both server and electron, and I faced a problem.
The change I made is inside the notification module, and a function ...
-1
votes
1
answer
77
views
Onbeforeunload event with Electron doesn't work [closed]
I have a webapp that should work with standard browsers and with an electron client.
I need to prevend that user left the page before saving his works on the web page.
Then I added this code:
window....
2
votes
0
answers
45
views
Electron app loading local React bundle - DOM never hydrates despite JS execution
I'm building a cross-platform application (web + desktop) where the React + Vite frontend is hosted on Vercel. While using mainWindow.loadURL('https://example-app.vercel.app') works, it has ...
0
votes
0
answers
67
views
[Playwright]: Worker teardown timeout of 380000ms exceeded
I am using Playwright to test an electron based Theia app, I had my test implemented as follows
import { test, expect} from "@playwright/test";
import { theiaApp } from "../../../...
1
vote
0
answers
62
views
How to install @nodert-win10-rs4/windows.devices.geolocation in Node 18 / Electron 29 with Cordova-Electron on Windows?
I’m working on a Cordova-Electron project where I need to access the Windows native geolocation API (WinRT) instead of using Google’s geolocation provider.
Environment details:
Node.js: 18.20.x
...
1
vote
0
answers
90
views
Electron production Build with angular 20
I got an Angular/Electron app. The app runs fine when I load a URL for the Electron window. But when I go to production, I want to load the files from the Angular build. So the app would also run ...
1
vote
0
answers
34
views
Auto-update not installing after quit and reopen on macOS 13 Ventura (Electron)
Environment
Electron: 25.x (tested)
electron-builder / electron-updater: tested with electron-builder 23.x / electron-updater (versions may vary)
macOS: 13.x Ventura
Relevant code (main process/...
0
votes
0
answers
103
views
How to correctly package a n electron app into a Flatpak with a custom app icon and set up file associations?
I'm packaging an Electron app (Grist Desktop) as a Flatpak, but I'm having trouble getting the app icon to show up and file associations to work properly. The icon is not displayed in the application ...
0
votes
1
answer
49
views
Using Azure Speech Translation SDK in Electron JS throwing error audio config error
I am working on a mac OS app that uses the Azure Speech Translation SDK in React + Typescript. The SDK's types are not altogether correct or at least seem to be a bit convoluted. Running the set up ...
2
votes
1
answer
110
views
How to use async/await with autoUpdater.checkForUpdates() from electron-updater?
I want to use async await mechanism for the checkForUpdates function of the autoUpdater in Electron.
Currently, I am using autoUpdater.checkForUpdates() without await in one of my asynchronous ...
0
votes
1
answer
182
views
Issue with Loading HeroUI Styles in Electron with Vite, Tailwind CSS v4, and React
I am developing an Electron application using React and Vite, incorporating the @heroui/react library (a UI component set) for buttons. The buttons display the click animation (ripple effect) ...
1
vote
0
answers
150
views
electron Process failed: rpmbuild failed (exit code 1)
I don't know why I have this error when trying to make dist from fedora with rpm and I have everything about rpm that says it is not there and nothing works, I will leave the package.json and the ...
0
votes
0
answers
36
views
VS Code extension Test Runner: How to assert values copied to the clipboard?
Summary/Intent
I'm writing tests for a VS Code extension that uses vscode.env.clipboard.writeText() to copy a generated string to the system clipboard.
I want to assert that the clipboard contains the ...
1
vote
1
answer
74
views
Font rendering differences between Chromium 89 (Electron 12) and Chromium 132 (Electron 34) - Meiryo font appears bolder with same CSS
Problem Description
I'm experiencing inconsistent font rendering between different Electron versions on the same machine with the same font installed. The Meiryo font appears significantly bolder in ...
1
vote
0
answers
107
views
"Cannot read properties of null (reading 'update')" when closing all panels with leftHeader/rightHeader
I’m building an Electron app using React and Dockview.
Everything works fine until I add a custom leftHeader or rightHeader to my Dockview layout.
If I close the panels one by one until there are none ...
0
votes
0
answers
31
views
Electron: Updating a value exposed through the contextBridge
I am working with a web application that is also used in an Electron application. It calls "window.electron.selfInfo" to access certain information.
In the Electron preload script, it used ...
0
votes
1
answer
157
views
python standalone builds causes problem with pillow tkinter
I am trying to embed python standalone builds to my electron app. I downloaded standalone from https://github.com/astral-sh/python-build-standalone
Everything seems to work fine until pillow is ...
0
votes
1
answer
57
views
How do I allow room for scrollbars when creating a WebContentsView in Electron?
My Electron application temporarily uses a WebContentsView, layered on top of part of the main window, during a login process. The user needs to interact with the web page in this view.
Simplified ...
1
vote
0
answers
46
views
Create an Module Federation monorepo React projects using the Nx CLI with electron app
console error image
Create an Module Federation monorepo React projects using the Nx CLI - npx nx
g @nx/react:host apps/erp--remotes=hr,pm,crm
installed nx-electron using nx g nx-electron:app ...
0
votes
0
answers
80
views
Text Input Field Not Working In React/Electron/Express App
Basically code is for an electron app with a react frontend and an express server connected to a local postgresql db.
I have a page with a list of employees on one side and an add icon. If you click ...
3
votes
2
answers
166
views
IPC delay from main process to renderer with Claude Integration [closed]
I have written a simple Electron Project with Claude integration.
Idea here is to use Claude-code npm package to access terminal and make the query to claude to get the required results and display it ...
2
votes
0
answers
78
views
WinSW: Service crashes with unhandled IOException when stdout/stderr log files are locked
I'm facing a problem with a client-server application running as a Windows service using WinSW (Windows Service Wrapper).
The service is restarting repeatedly due to this unhandled exception:
The ...
0
votes
0
answers
44
views
Electron-builder content is not available for windows build production but work on mac and linux
i have a challenge since 3 days and even chatGpt couldn't resolve my issue :)
I have a react/capacitor/electron app packaged with vite to build. Everything ok for capacitor and Mac/Linux Electron. But ...
1
vote
0
answers
53
views
Electron.js form input fields freeze for a few seconds after inserting data
I'm building a desktop app using Electron.js with a Bootstrap-based form that includes input fields and dropdowns.
Everything works fine initially, but after I insert data once or while filling the ...