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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

Can we use electron.nativeImage APIs in a NodeJS worker thread?

Is it possible to use electron APIs from within a NodeJS worker thread spawned from the main Electron process? We have attempted to use Electron's nativeImage module from within a worker thread (Node ...
0 votes
0 answers
23 views

Microphone not changing after setting new constraints

We are building an application in Electron and the microphone is not changing after setting a new deviceId. There is no error being shown. //myId is an id retrieved from navigator.mediaDevices....
  • 414
0 votes
0 answers
27 views

When you start Electron, you get an error that the version of Node.js is not supported

When you start Electron, you get an error that the version of Node.js is not supported. The operating system is Windows. When I update Node.js and do node -v, it shows v16.17.1. When I start it with ...
  • 15
0 votes
0 answers
31 views

nativeImage.createFromPath(<SOME_PATH>).toDataURL() blocks the main thread for synchronous task

nativeImage is a module provided by electron. This allows to read image data from a path [nativeImage.createFromPath(<SOME_PATH>)] in our system and returns a NativeImage instance. This instance ...
1 vote
0 answers
43 views

Electron Spotify not opening in desktop mode

Electron is not opening spotify in desktop mode, as you can see in the screenshot below. Here is the code: const {BrowserWindow, app} = require("electron"); const pie = require("...
0 votes
1 answer
50 views

How do I turn this initialization into modern js?

In the Electron page shows this brief example in how to initialize a new window const { app, BrowserWindow } = require('electron') const path = require('path') function createWindow () { const win =...
0 votes
0 answers
28 views

Running Electron with Edge/Electron-Edge?

There seems to be very little information around getting these to operate successfully. Perhaps something else has came along that's cross platform for desktop development utilizing .net libraries? I'...
0 votes
0 answers
46 views

Electron: How to load webview inside iframe?

I am unable to load webview inside iframe. When i add webview tag it is not visible on preview, but it exists as tag . Can someone help me? Thanks in advance!
0 votes
0 answers
30 views

Electron Tutorial - Debugging With VSCode

I've been working my way through the node.js Electron tutorial: Electron Tutorial I'm OK until I arrive at the section "Optional: Debugging from VS Code". I added the .vscode/launch.json ...
0 votes
0 answers
32 views

dependency error with node-pty and electron with yarn

I was working on a electron project from this template when I installed node-pty, then got this error: innerError Error: Cannot find module '../build/Debug/pty.node' After some searching i found a ...
-1 votes
0 answers
27 views

Using Electron to build data heavy desktop apps [closed]

I want to create a desktop app which will be similar to Alteryx. I will use it to design and run workflows and keep the data in memory for each step for visualization while debugging. I want to know ...
1 vote
0 answers
36 views

StreamMessageReader is not a constructor in Electron + Monaco app

I'm trying to build an application using Electron with Monaco editor. I used monaco language client to integrate the editor with clangd. But somehow it didn't work... After manually connecting to the ...
  • 157
0 votes
0 answers
60 views

Passing data from browser to electron app

I am learning electronjs and want to open electron app by clicking on a href link from browser. package.json { "name": "my-app", "productName": "my-app", &...
0 votes
0 answers
41 views

Avoid small margins when printing borderless with Canon Selphy on Chrome

I would like to print this Codesandbox-Website with the default Chrome-Printing Menu. But even when I set marginType to "none" there are tiny margins on some sides, when removing the ...
-3 votes
1 answer
39 views

Electron "web-contents-created" not firing [closed]

Electrons "web-contents-created" event is not firing for me. In the main file, I have added an event listener to the event that just immediately quits the app to test if the event even fires....
  • 25

15 30 50 per page
1
2 3 4 5
945