Skip to main content

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.

0 votes
0 answers
20 views

How to make all new tabs/windows in electron direct to new electron-tabs

I'm currently working on some JavaScript code for a project. My goal is to make Electron open all links that would normally result in "pop-ups" to open in new tabs under the electron-tabs ...
5 votes
1 answer
821 views

Hide window of electron app on workspace change (on macOS)

In this this SO thread is described, how to get a background tray app working on multiple workspaces (on macOS). But when using the given code example with the win.setVisibleOnAllWorkspaces(true) ...
0 votes
0 answers
10 views

How do I check if the webview and the app are not focused

My app thinks it is not focused while the <webview> is focused. It checks if the app and the webview's IsFocused function returns true I'd like it to work,not do false positives! I tried GPT3, ...
1 vote
0 answers
5 views

ERR_SSL_CLIENT_AUTH_CERT_NEEDED when sending custom client certificate from Electron

I have been trying to send a certificate (in the form of a .pem file) from Electron to my backend (using gevent) and encountering the following error (node:18946) electron: Failed to load URL: https://...
3 votes
2 answers
2k views

Problem while packaging application with electron-forge "EPERM operation not permitted RMDIR"

It's been a while when I last successfully packaged a electron-forge application, so I had to repackage due to a icon change. As I tried to run npm run make OR npm run package, as the command line was ...
0 votes
0 answers
11 views

Electron Forge does not pass specific `arch` for universal Mac builds

We are using ffmpeg-static in our Electron app, and creating a universal mac build via electron-forge and under the hood electron/universal. But only the arm64 ffmpeg binary exists in the final app. ...
3 votes
2 answers
7k views

How to set column size using DOCX.JS

I am creating an application using electron and react, and I will need to create a Word text document dynamically, I found a great package, DOCX, but I need to create some tables, and I can't set the ...
0 votes
1 answer
14 views

Cannot Import local module/file in Electron-vite (vue)

index.js(entry point of electron) import { connect } from "./MongoDB"; MongoDB.js module.exports = { connect,} error- > electron-vite dev vite v5.3.4 building SSR bundle for ...
0 votes
0 answers
13 views

Electron Store working in dev mode but not in production

I am using Electron Store in Electron Js Project. The app is successfully built. But the electron store is not working in production/build version as I am not able to store the data persistently. What ...
0 votes
1 answer
5k views

Using electron-store with react

so i've been messing around with electron and react to create an application, and i've been searching for a way to store data. Not like a lot of data, just a few things that i need. i've found that ...
0 votes
0 answers
8 views

Can't debug the frontend of Electron/TypeScript/React/Webpack project in VS Code

I am working on Electron/TypeScript/React/Webpack project, this is my launch.json file in VS Code Run and Debug: { "version": "0.2.0", "configurations": [ { ...
12 votes
2 answers
12k views

Play local .avi videos in Node.js / Electron app

Maddening gap in an app I'm developing is there appears to be little (or no) support for AVI in the HTML5 video implementation. So, I need a workaround that is cross-platform, and package-able with my ...
0 votes
0 answers
5 views

How to create a minimize button?

index.js const mainWindow = new BrowserWindow({ width: 800, height: 600, resizable: false, frame: false, icon: path.join(__dirname, 'icon.png'), webPreferences: { preload:...
4 votes
4 answers
11k views

Failed at the [email protected] postinstall script

I was trying to install electron into my project, but it is giving an error. I also tried to do this with unsafe-perm, but still giving the same error. npm install electron --save-dev --save-exact &...
0 votes
0 answers
15 views

SSH2-SFTP-client module won't import

I am trying to import and use the ssh2-sftp-client package for my React/Electron project, but any time I add the import to a file, I get a massive wall of module errors. They are all either "Can'...

15 30 50 per page
1
2 3 4 5
1034