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.

-7
votes
0answers
18 views

Javascript virtual keyboard not working when website contains forms inside the Iframes?

I used Nodejs simple virtual keyboard in electron application. Here i open webiste into webview and inject simple virtual keybaord for typing values but it is not working properly. enter image ...
0
votes
0answers
10 views

How to execute locally installed Node.js application by child_process.spawn()?

I want to execute the Electron application by child_process.spawn: import ChildProcess, {ChildProcess as ChildProcess__type} from 'child_process'; const childProcess: ChildProcess__type = ...
0
votes
0answers
21 views

The build tools for v141 (Platform Toolset = 'v141') cannot be found

I am writing code to load c++ dll from electron. I have installed Visual Studio v141 tools but when running npm install I get the following error: "The build tools for v141 (Platform Toolset = 'v141') ...
0
votes
0answers
12 views

Wine opens several winebrowser instances when trying to following links

I have wine 4.0.1 installed on Kubuntu 19.04. Whenever I try to click on a linked url from a program such as discord or slack, I get spammed with infinite winebrowser processes trying to load the ...
1
vote
0answers
32 views

Why can't my electron app access the 'fs' module?

I have a relatively simple electron app - brunch, react, redux, electron. I'm now trying to read a json file using the "fs" node module, but it's throwing an error: TypeError: _fs2.default.readFile ...
-1
votes
0answers
12 views

Issue while running app on 32-bit system but working properly on 64-bit

I have application on RPA built on electron and nsis i am using to built app. But currently the application is working on 64 bit system but not on 32 bit. I am using ia32 also but yet issue continues. ...
-1
votes
0answers
18 views

Why the exe is always generated in that folder where I built first time?

I am trying to build exe into a new directory using "electron-packager D:\Topu\codes\CHAT_SOC topu --platform=win32 --arch=x64" but my exe is generated always in the initial directory though I have ...
-7
votes
0answers
55 views

Creating UI using Electron.js [on hold]

I'm asked to create UI for a native app using Electron and time given for that is just 1 week. So directly coming on to the questions: 1) Can I create Text Field,Scrollbar,File Picker,Button,...
-2
votes
0answers
27 views

How to auto-update with electron?

helllo I am working on a application which works as it should be. Now I want to implement a auto-updater in my application. I having a hard time finding to figure this out. I want to auto update ...
0
votes
1answer
29 views

Request microphone permission in electron

I have an electron app that uses the webkit speech recognition API. If tested in the browser, everything works as intended, but if run in the electron environment, the speech recognition api doesn't ...
0
votes
0answers
18 views

ElectronJS: Child window does not move along with parent window on windows system

I have created an electron app which had a parent window and a child window to that parent. On mac it works fine, The parent window when moved, child window also moves along with it. But the same code,...
1
vote
1answer
28 views

How to remove chrome extension from electron?

UPDATE: The issue seemed to resolve itself after I restarted my Mac. I recently tried integrating a chrome extension to my electron project but it did not work as intended. At this point, I realized ...
0
votes
0answers
14 views

How to debug Quasar Electron App with VS Code

I'm having a hard time configuring vs code to debug an electron app. What I'm trying to do is to build the project with the -d option to generate the debug (https://quasar.dev/quasar-cli/cli-...
0
votes
0answers
15 views

How do I build an electron app with parcel?

I am working on a phaser 3 project with the phaser-runtime package from npm. The phaser-runtime package uses electron to make apps with phaser 3. I am trying to use import and export for ES6 classes, ...
0
votes
0answers
18 views

Not possible to build electron package correctly in windows server machine(tfs agent)

I build application using electron framework, I see package is correctly in my local machine(windows 10 64 bit). After the package is built, I am able to run the package. If I run the application in ...
1
vote
0answers
26 views

I can't create a working executable with ReactJS and Electron

I am a bit stuck with my build process. I currently have a ReactJS application running on react-scripts for dev and it is running in an Electron application (which is connecting to the localhost:3000 ...
0
votes
1answer
13 views

How to add “React Performance DevTools” as chrome extension in electron app using package “electron-devtool-installer”

I am trying to add "react-performance-devtool" extension to electron app using electron-devtool-installer. When i tried with one of the mentioned extension in documentation, it is working fine, but ...
0
votes
0answers
30 views

electron : Lodash not working in electron Main process

I'm downloading posts from subreddit const electron = require('electron'); const _ = require('lodash'); const getsub = (sub, epoch) => { let res = {}; const sub_url = `https://api.pushshift....
0
votes
1answer
14 views

How to debug an iframe/webview in electron framework

I have webview/iFrame inside electron framework. I want to debug the code inside the iFrame. I launch electron app with debugger windowas shown in the picture. I want to debug the content that gets ...
0
votes
1answer
30 views

Node Integration not working in Electron?

I am creating an inventory application with the backend written in Python 3.7. I am using Electron to build a GUI for it and the Node.js Module "python-shell" to be able to communicate with the Python ...
0
votes
0answers
12 views

electron-webpack with vue - dynamically load image

I want to create a desktop app that allow me to load images and arrange it into layout, like a very simple version of designer app. I followed this tutorial to setup my electron app with vue and ...
1
vote
0answers
15 views

how to enable javascript of remote web page in electron app popup browserwindow

I have an electron (4.0) app. I'm using the openid/appauth-js node module. This module brings up a native browser window when performing openid connect hybrid flows. (I am using IdentityServer 3 for ...
1
vote
0answers
24 views

Communication between remote Angular app and Electron desktop app

the scenario is the following: An Angular app deployed in an external server Desktop electron app running locally serving a remote url (the one where the Angular is served from) Is there any way to ...
1
vote
1answer
41 views

Electron callback can only be called for once

I have a simple electron app that wraps around a web app that prompts for username and password. Problems: 1) When the user inputs the wrong credentials and the authWindow appears again. With the ...
1
vote
1answer
33 views

How do I remove the menu bar from a specific window in electron?

I have a menu in my application that when you click on document properties another window pops up, but the application menu is also being inherited by this window, so you can open the document ...
0
votes
1answer
26 views

Require() is not defined in electron - node js

I am using electron with node js. I have used require() already in two html files like this: <script> window.$ = window.jQuery = require("jquery"); </script> Now when I try to do ...
0
votes
2answers
31 views

How to bypass input form security

I tried to scrape a website just for learning purposes. I encountered serious form security: I tried to enter the form value using element.value = "some text". The value appeared inside the input ...
0
votes
0answers
15 views

Typeorm database queries blocking electrons ui thread

I am currently working on an elctron app wich uses typeorm to read from a database. The problem is that any calls to the database are blocking the main and the ui thread although all methods are ...
0
votes
0answers
8 views

MacOS erorr bulding squirrel installer for windows

Error building my electron app for windows on macOS mojave When building im getting this error: Error: Exit code: 255. Command failed: mono /Users/nikolaj/Library/Caches/electron-builder/Squirrel....
0
votes
0answers
21 views

Why am I unable to send JSON data to the ipcRenderer

In my main.js app.on("ready"), I call a function called runTimer() which contains the following: const runTimer = function(){ const { net } = require('electron') setInterval(async function () ...
0
votes
0answers
16 views

mapbox-map-image-export returns a non-specified error “Error {}” on Ubuntu server

I have installed the mapbox-map-image-export npm package locally in a Ubuntu 18.04 and it work fine to generate the map image. But when I have installed it in a VPS running under Ubuntu 16.04, it ...
0
votes
1answer
28 views

Problems installing library on my raspberry (Electron)

I'm trying to install a library in my raspberry but i can`t. I got a Electron app that works without the library already. This library works on my computer with Windows. https://www.npmjs.com/package/@...
0
votes
0answers
24 views

How to fix Electron App not rendering on some Windows Server Machines?

I installed my Electron Windows App on a fresh Windows 10, Windows Server 2016 Standard and Windows Server 2012 R2 Build 9600 and it is working fine. The connection to my websocket is also working. ...
0
votes
1answer
23 views

MacOS Electron JS Installation Missing Path Link

After running npm install [email protected] on MacOS with and without sudo permissions, I can't use the electron command. The error codes in the log file are: 117 error code ELIFECYCLE 118 error errno ...
0
votes
1answer
38 views

Electron browserWindow password prompt

I have a simple electron app that wraps around a web app. The web app prompts for user name but electron doesn't show the prompt and directly goes to the 401 Authorization Required page. Is there a ...
2
votes
0answers
28 views

Retrieve more detailed errors from Electron preload script

I am trying to run a new Electron app with a simple preload script and I'm seeing a syntax error in the developer tools even though TypeScript has no problems compiling. Unfortunately as Electron only ...
0
votes
0answers
28 views

Do audio players preload audio files?

I'm creating an Audio Player using Electron and Web Audio API. My current approach for opening and playing audio files looks like this: User with native dialog window selects audio files - it loads ...
-1
votes
1answer
16 views

Not able to download big file from SFTP using node js

i m trying to download 4 GB file from SFTP using node js using ssh2-sftp-client module. My main problem is around 40%(not to be exact sometimes 45 also) of file get downloaded after than downloading ...
0
votes
1answer
18 views

Angular and electron communication

I am trying to integrate my angular application with electron and want to bind and send message from electron to angular. My code is as follows: App.module.ts: import { NgxElectronModule } from 'ngx-...
-1
votes
1answer
36 views

DOM not updating during long function [duplicate]

I have an electron app where clicking a button runs a mining function, which takes a long time to run. I am trying to display the nonce as it changes as an element on the page. However, when I run the ...
1
vote
0answers
20 views

How to handle code signing for client app?

How do I handle code signing an Electron app I have developed for a client, using their credentials? I've searched prior questions and have not seen this issue adequately addressed (link, link, link). ...
0
votes
1answer
35 views

How can I kill an express process when is running in a port

I am using the module express on my Electron project and when i try to close this service expreso.get('/test', function(req, res, next){ res.json({"key": "value"}); ...
0
votes
0answers
20 views

How can I check why my electron processes are getting killed by Windows?

I have an electron app deployed on Windows 10 systems with customers. My app has 3 processes running in the background. However, off and on, the processes seem to get killed (I am assuming by the OS). ...
0
votes
0answers
12 views

can i use Sqlite Encryption Extension(or sqlcipher) on Electron app? (windows 10)

i made windows app by using Electron and i used sqlite3 on my app. But now i need database encryption, so i tried to find way to encrypt db but i failed... Is it possible to use Sqlite Encryption ...
1
vote
1answer
61 views

Electron JS write file permission problems

We are developing an Electron JS app which should get a configuration file from a server at one part. This worked until an hour ago, but now it "magically" throws a permission error. It throws a ...
-1
votes
0answers
27 views

NodeJS spawn() bad encoding in written files

I'm invoking a jar file that runs through spawn() in an Electron application. I spawn the Java App as: spawn( 'java' [ '-Dfile.encoding=UTF8', '-jar', 'somefile.jar' ], { encoding: 'utf-8' } ); ...
0
votes
1answer
33 views

How to to use Docker for ElectronJS app built in Windows?

I am working on a desktop application build using ElectronJS framework on Windows. May be I haven't understood Docker properly, but how do I use docker for this app? My end goal is to not let ...
2
votes
1answer
74 views

How to debug C++ Electron addon from Visual Studio

I'm trying to do a debug step-by-step of my C++ addons that is used within a simple Electron App. The problem is that the break points are never triggered, even if I can see that Visual Studio loaded ...
0
votes
0answers
12 views

invoke node-powershell sample script in create react app- App.js

I am trying to use node-powershell package in create react app App.js. I am Unable to assign the node-powershell sample script in react render. here is the code i am using: class App extends ...
0
votes
1answer
35 views

Electron loadFile is not a function

I'm developing an app using Electron. Using win.loadFile('index.html') used to work, but from yesterday it throws an error saying: win.loadFile is not a function. Could it be "Knex.js" which caused ...