15,335 questions
-3
votes
0
answers
22
views
Electron + Local Server Run MERN
My Electron + Express + React app works in dev but server doesn't start in production build. How to embed Node.js server in Electron executable? I have attached my main electron.js and package.json ...
0
votes
1
answer
18
views
Electron crash due to libusb conflict between yoctolib-cjs and other USB libraries
I am developing a Windows Electron application and I suspect a USB / libusb conflict between the usb library and Yoctopuce’s JavaScript API (yoctolib-cjs/yocto_api).
When both are used in the same ...
-3
votes
1
answer
38
views
When is the renderer process in Electron application actually ready to listen for the events?
According to my intentions, the application must display the loading screen until FileManager class will finish the initialization. Once this initialization done, the broswerWindow must to submit the &...
Advice
0
votes
1
replies
26
views
What is the Build folder and what is its context in Electron-vite?
I am working on a project using electron-vite and using the @quick-start command for scaffolding the project.
When I used this template, it came with a folder called "Build". I tried to ...
0
votes
0
answers
37
views
Getting feedback from the main process in an Electron app
My Electron app starts with a script called main.js. In amongst various setting up processes:
I create a BrowserWindow called window.
window loads a page called index.html.
index.html includes ...
0
votes
1
answer
35
views
How can I import React components in an Electron app?
I am trying to import a React component Menu.jsx from App.jsx in my Electron app. No errors are showing up, but nothing is being rendered and are not added to the DOM (the body is empty when I looked ...
0
votes
1
answer
49
views
How to open files from the user's local device in serverside Blazor using ElectronNET?
I created a serverside Blazor App and "electronized" it by following the instructions in the read me on the electronNET/electron.NET github page. One of the requirements for this app is to ...
Tooling
0
votes
2
replies
30
views
Prevent Certain DOM Elements from being Screen Recorded in Electron
I have a React web app that I am running inside an Electron app. I am doing this so that I can screen record like so:
window.electronAPI.startRecording();
However, some of the content on the screen ...
0
votes
1
answer
26
views
Firefox SSO login shows file picker dialog instead of opening browser on Ubuntu 22.04/24.04
I'm developing a Linux application that opens SSO authentication URLs in the default browser.
On Ubuntu 22.04 and 24.04, when Firefox is the default browser, clicking the SSO link shows a file picker ...
2
votes
1
answer
30
views
ElectronJS shell openPath cannot open file inside app.asar
Try to open a HTML file that resides inside the packaged app app.asar file. The file is there but Windows complains that cannot find the file. The pieces of the puzzle are:
inside the win-unpacked\...
-1
votes
1
answer
52
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
46
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
59
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
73
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
83
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 ...