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.
electron
15,490
questions
-1
votes
1
answer
58
views
How can i fix Electron problem: Error: ENOTDIR, not a directory?
I'm using an electron for the first time. I ran into a problem when building the application. I do everything according to the documentation, I use electron-forge. npm run make runs without problems, ...
-1
votes
0
answers
20
views
Electron squirrel startup app not getting removed from start up items after uninstallation [closed]
App not getting removed from start up items after uninstallation
this should be placed at top of main.js to handle setup events quickly
if (handleSquirrelEvent()) {
squirrel event handled and app will ...
0
votes
0
answers
9
views
Electron Forge resolving path to node module using absolute path rather than using relative path
I'm trying to create an app that include the get-windows npm package, but I cannot distribute my app because Electron Forge is using resolving the package to an absolute path rather than a relative ...
0
votes
0
answers
38
views
String contains non ISO-8859-1 code point
When I'm trying run my electronjs app and use window.loadURL('https://example.test'), I catch the following error from PrecacheCacheKeyPlugin.
Uncaught (in promise)
TypeError: Failed to construct '...
0
votes
0
answers
15
views
Runing WebDriverIo Test on Electron Application in Dev Mode
I am trying to use wdio for my electron project, its working very well when running it on the build (release/win-unpacked/)
but when I set the configuration file to use it directly in dev mode
...
0
votes
0
answers
40
views
How to add `tailwindcss` to my Vue + Electron Forge project?
I'm doing my first sample project using Vue + Electron Forge with the template vite+typescript. Now I want to add tailwind but I can't seem to find any useful documentation online.
This is my project ...
0
votes
0
answers
10
views
App not getting removed from start up items after uninstallation
App not getting removed from start up items after uninstallation
const key = new WinReg({
hive: WinReg.HKCU,
key: '\Software\Microsoft\Windows\CurrentVersion\Run'
});
const appName = 'airtel_reflect'...
1
vote
2
answers
70
views
Is it possible to add an eventListener to a custom title bar used for dragging the window in a frameless window?
Added a custom title bar to a frameless window in order to make the window draggable. The title bar shows, but eventListener won't fire:
main.js:
const createWindow = () => {
const win = new ...
0
votes
0
answers
26
views
Uncaught TypeError: Failed to resolve module specifier "monaco-editor". Relative references must start with either "/", "./", or "../"
I'm getting started using a Monaco Editor for an Electron JS application. So far I'm able to get the file content on a user's directory no problem but when I try to append it to a Monaco Editor is ...
0
votes
0
answers
25
views
Node.js Electron App renders a blank screen on start [closed]
I have an Electron app with Shadcn/ui, and when I start the program, I only get a blank white screen. In the console, I see no errors.
I tried using other guides, but they were either outdated or not ...
0
votes
0
answers
31
views
Builds for atypical templates using Electron + shadcn-ui not working as expected
I tried to create a simple app for desktop (windows) using electron + shadcn-ui. Everything was fine until the creation process, but I encountered a problem after the build.
PS C:\Users\user\Desktop\...
1
vote
0
answers
23
views
App threw an error during loadReferenceError: __dirname is not defined in ES module scope
I'm trying to build desktop app using Electron JS + React JS + Vite by using command (npm i electron-vite@latest)
It works fine, now there is a need to communicate to serialport, so installed (npm i ...
0
votes
0
answers
15
views
How to prevent system shutdown if an electron app is running
I want to send an api request when the user closes the app. I have managed to send an api request on that but on shutdown the request is not sent.
Is there any way in electron that we can prevent ...
0
votes
0
answers
14
views
Electron Forge with Vue 3 integration doesn't work
i want develop an Electron app integrated with Vue 3 using electron forge.
I've followed this official documentation
Electron Vue integration .
But when i run the command
npm start
the application ...
0
votes
0
answers
15
views
Does electron have a way to get information about the printer, including sub-sheet information, paper quantity, etc
ipcMain.handle('getPrinterAsync', async (_, args) => {
return this.windowPrint.getWindow().webContents.getPrintersAsync();
})
Does electron have a way to get information about the printer, ...