Questions tagged [electron]
Electron (formerly Atom Shell) is a framework created by GitHub that lets you write cross-platform desktop applications using HTML, CSS and JavaScript. Electron is based upon Node.js and Chromium.
13,726
questions
0
votes
0
answers
6
views
Issues with created external with webpack toghether with firebase and electron
I am trying to build an application using Electron and React
I upgraded my firebase from v8 to v9 and then issues appeared.
Webpack bundles succesfully. This is the compilation outcome
asset app.js 5....
-1
votes
0
answers
12
views
nodejs how to make a check is open whether Devtools, electornJS
nodejs how to make a check is open whether Devtools ?
DEVTOOLS EXTENSION
google.com/search?q=DEVTOOLS_EXTENSION
0
votes
0
answers
8
views
What is the difference when spawning a process through node (child_process.spawn) from running it through terminal?
I have an electron app running with Node 16.x and Electron v18. On Linux distributions (Ubuntu/CentOS), I noticed that if I run the app through npm start, it's working fine. However, if I run the app ...
0
votes
0
answers
14
views
Trying to use global.require in Electron
I'm trying to do pretty much the same thing as this post:
Using node require with Electron and Webpack
Basically, I need Electron to read other js files that weren't together in the build.
But when ...
0
votes
0
answers
16
views
Problem with spawn + Electron (backend + frontend ) NODEJS
On baackend I have the following modules:
express for event-stream with backend ->frontend
and req/res frontend->backend get /post
Frontend: Electron+vue+axios
When developing an application, I ...
0
votes
0
answers
18
views
I want close electron app from another html page with button
We are currently improve a project with electronjs: We have main.js for electron as you know and we have another html page that javascripts codes in it. We created a close button in this html page ...
0
votes
0
answers
9
views
electron-updater yields ERR_SSL_CLIENT_AUTH_CERT_NEEDED
Electron-Builder Version: 23.0.3
Node Version: v14.13.1
Electron Version: 18.2.3
Electron Type (current, beta, nightly): current
Target: nsis win x64
Hello, I'm trying do to a simple PoC on how we can ...
0
votes
0
answers
15
views
Electron/C# error when calling child process
I am building an application in electron and I am trying to execute a console application which I build in C#. This console application receives a json string as a command line arguments to generate a ...
0
votes
1
answer
8
views
Loading local file inside an iframe in Electron
I've tried different approaches but all are problematic.
So first of all I was using webview, but as per electron documentation, this tag is undergoing major architectural changes and it's recommended ...
-1
votes
0
answers
5
views
How to avoid Electron application auto update?
How to avoid Electron app auto update?
My Electron application recently acts so weird. When I closed the application the icon on desktop disappear and few minutes later it show again but it becomes ...
0
votes
0
answers
7
views
Electron Pos Printer prints empty receipt
I am using this library Electron Pos Printer, and I have made a small batch of code. I have successfully connected my POS thermal printer, but when I send a command to print, it only "prints"...
0
votes
1
answer
17
views
I create a build of my react app and connected with electron.js. now how to connect my backend from server folder with electron
*I create a build of my react app and connected with electron.js. now how to connect my backend from server folder with electron.
How can I add backend to electron .exe
const { app, BrowserWindow } = ...
0
votes
0
answers
19
views
install.packages() not working on R-Portable-Mac with electron-quick-start
I want to create a standalone app from my shiny app in R. My shiny app works correctly and I have followed the instructions in this link https://github.com/COVAIL/electron-quick-start/ I have been ...
0
votes
0
answers
23
views
Afterimage when changing Position of DOM Element
when I try to change the position of an element via Javascript I get these strange afterimages.
This problem also occurs with the most simple structure and just a plain text div.
As a Note , this is ...
0
votes
0
answers
21
views
select directory is not working using electron.js
I am using "electron": "^16.0.7", I am trying to select directory by using "webkitdirectory". Whether it select's files instead of selecting folder. And then retrieve the ...
0
votes
0
answers
6
views
electron app limited by browser connection limit
We are thinking of building electron app for uploading files using aws node sdk. Completely new to electron. We want to utilize node sdk multi part feature. My question is will number of multipart ...
0
votes
0
answers
14
views
Electron built app, set minimum display size
I need to set the minimum width and height on my desktop app when the user runs it after installation.
As you see the electron browserWindows changed
I already add minWidth & minHeight to ...
0
votes
0
answers
14
views
ELectron React Boilerplate random error at start
I have a project, very simple, based on ERB, but 50% of the time I started I get the following error in the (webkit) console:
Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')...
0
votes
0
answers
14
views
Generate blob PDFs using Electron
I am creating an Electron Application with Electron-Builder in which I am generating PDFs using blobs, when I pack the application using "asar": false, the generations works very well. But ...
0
votes
0
answers
18
views
How to separate IpcMain.on from Main.ts?
At My Index.ts (Main.ts)
const createWindow = (): void => {
// Create the browser window.
mainWindow = new BrowserWindow({
height: 768,
width: 1024,
webPreferences: {
...
0
votes
0
answers
22
views
CSS reducing the window size by moving bottom border up overlaps ImageGallery in Electron app
Am trying Electron and React, so i have encountered with an issue using React's ImageGallery component by putting "react-image-gallery": "^1.2.7" in package.json
There is a wrapper ...
0
votes
0
answers
11
views
Writing API data to document using Electron
I am developing a simple weather application using Electron in order to better learn JavaScript. I've followed the getting started tutorial and am now incrementally adding some functionality.
I've ...
0
votes
0
answers
15
views
How to read/write any tag with rfid in Electron js
I'm building this electron application and I'm trying to integrate RFID to read/write on any tag of any frequencies. I've search the internet for weeks now but nothing works in all I've seen. I have a ...
0
votes
0
answers
8
views
Electron command line replaces single backslash with double
I'm building an app in Electron that requires a file path to be passed to it via the command line. I'm able to retrieve the command line arguments and values fine, but the backslash ('\') character ...
1
vote
0
answers
10
views
window.require is not a function at Module./renderer.js
When I run the App I get this error: TypeError: window.require is not a function
at Module./renderer.js
I delete window. from the line then I get another error
Cannot find module 'fs' at ...
2
votes
0
answers
48
views
Electron gives blank Screen when try to serve it
I have this problem regarding electron, I tried to upgrade my electron version from 7.0.0 to 18.2.3 but I got stumbled in this problem where the screen always give me a blank screen after I try to run ...
0
votes
1
answer
26
views
I'm trying to install electron JS but it crashes during installation
it just stop and nothing happen, i have tried to install different versions of node js, even with using git it happens the same thing
[##################] | reify:lodash: timing reifyNode:node_modules/...
0
votes
0
answers
12
views
Install old electron version on mac m1
I am running an old project which uses electron@v1.8 on Mac M1, but it throws an error
Error: Failed to find Electron v1.8.8 for darwin-arm64 at https://github.com/electron/electron/releases/download/...
0
votes
0
answers
11
views
electron JS - node-notifier: Can not listen to the event when set appID
On window.
Before starting, set actions for it.
notifier.notify({
title: 'My notification',
message: 'Hello, there!',
actions: ["ok","cancel"]
});
notifier.on('ok', function ...
0
votes
0
answers
6
views
Unable to view redux state in electron devtools
I've configured a react redux app that runs on an Electron process. However, I'm having trouble getting the electron devtools window to show the actual redux state, as seen below and I am puzzled as ...
0
votes
0
answers
6
views
How to deploy an app written in electron.js to the web
A client has a desktop application built with electron and wants me to deploy it on the web.
The app allows users to upload files and generates visualizations. What could be the easiest way for me to ...
0
votes
0
answers
14
views
Returning values from a Promise to a React Component using Electron and contextBridge and sqlite3
I am trying to connect a SQLite3 database with a react component using electron contextBridge and continue to return a promise {<pending>} in my frontend react component. I have rapped my SQL ...
2
votes
1
answer
57
views
Class WebSwapCGLLayer is implemented in both Mac OS X /System and node_modules
I am completely new to using node and electron. I was running through the getting started docs and after running npm start as described when I encountered the following error:
Class WebSwapCGLLayer is ...
-1
votes
0
answers
17
views
Get Current Window Electron
Hi,
I have a electron app, i need to make button that close, minimize, maximize the window. I search so far on internet. My problem is how to get the current window from rendred page. I found the ...
1
vote
3
answers
46
views
React.js, how to properly use the map() function to display data?
I'm tying to display user data in one of my pages in an electron app. I get the data from firebase/firestore and then put it in an array, then, I want to display that data in a table but I can't ...
0
votes
0
answers
10
views
How to interpret memory dump in chrome developer tools
I am trying to find a memory leak (in my electron app). Amongst other things I tried to interpret a memory dump.
Now I wonder about a couple of things:
Is it normal that the application code is ...
2
votes
0
answers
30
views
Packaging a go binary and electron app together [duplicate]
I have an electron app (React) that communicates with a go binary over gRPC. I'm looking to package both binaries for distribution and I'm not entirely sure if there exists a way to package both the ...
-2
votes
0
answers
20
views
Using electron with nuxt3
I searched for a tutorial, how to build an electron app with nuxt3. But i didn't find any stuff on google, neither on youtube.
Is it even possible at the moment?
Thanks for helping
0
votes
1
answer
12
views
store.get("userOptionOptOut") get from wrong path
I am using electron-store version 5.2.0 for Angular project.
I would like to know where is the path or how to get the path when store.get("userOptionOptOut").
In app.component.ts:
const ...
-1
votes
0
answers
7
views
Conect api Microsoft Graph with Electron
devs! I'm having a problem getting the code on azure with the Electron Node application. I downloaded a demo from microsoft and did all the settings and i only get the response of unauthorized. The ...
0
votes
0
answers
24
views
Testing Electron application with RobotFramework: Element with locator not found
I am testing a desktop application(created with Electron) using RobotFramework and SeliniumLibrary.
I followed all the steps which is provided in this link - https://spage.fi/electron .
Nothing works ...
0
votes
0
answers
28
views
How to execute a batch script in resources folder of Electron app packaged with electron-builder
I have successfully built an electron app built with react. I packaged the app with a batch script in the resources folder under a server subdirectory. Wrote a script.js file and included that in the ...
0
votes
1
answer
25
views
how to Code Sign EV certificate using electron-builder?
I'm using electron-builder.
I can see their documentation mention about EV Code signing.
https://www.electron.build/code-signing.html#windows
But it doesn't say in detail HOW.
In docs, it says If you ...
-2
votes
0
answers
27
views
Adding (vscode like) extension support to an electron app [closed]
I am working an an electron app and would like to integrate vscode like extension support. I'm aware that this is no easy task, however, i am wondering about how it works. I am using react and ...
0
votes
0
answers
19
views
failing WebSocket opening handshake ('WebSocket connection denied: origin 'file://' not allowed')
I'm facing this error when i'm trying to connect to a websocket server
dropping connection to peer tcp4:127.0.0.1:49528 with abort=False: WebSocket connection denied: origin 'file://' not allowed
...
0
votes
0
answers
15
views
mas-dev build won't show open file dialog on an electron app
I've been trying to pack and sign my electron app using this guide. I've signed the app and am able to open app, however, I'm unable to show the open file dialog. Here is the relevant code and configs:...
0
votes
0
answers
10
views
Shiny app deployed with RInno doesn't show download window
So I've deployed my Shiny application using RInno library. Everything was successful. The file upload works, but the downloadButton doesn't, while it works in browser. When I click the download button ...
1
vote
0
answers
32
views
Preventing Electron to exit fullscreen on Escape
ever since Electron 18.0.1 introduced this PR I am having trouble with pressing Escape in fullscreen. Trouble is that my Electron application is running in fullscreen and I want my app to handle Esc ...
-4
votes
1
answer
34
views
__dirname unexpected in development with Webpack, React and Electron
Electron: 13.5.2
Webpack: 5.70.0
React: 18.1.0
console.log(__dirname);
I was expecting something like:
C:Users\...\Project\app\settings
But the output:
...\node_modules\electron\dist\resources\...
1
vote
2
answers
46
views
Replacing JS require('...') with ESM imports
After updating node-fetch to v3, the following JavaScript error message appears when trying to launch my Electron app:
Uncaught Exception:
Error [ERR_REQUIRE_ESM]: require() of ES Module (...) not ...