Skip to main content

All Questions

Tagged with
0 votes
1 answer
63 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, ...
Казбек Сабанаев's user avatar
0 votes
0 answers
13 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 ...
atrinh's user avatar
  • 1
1 vote
2 answers
75 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 ...
nBar's user avatar
  • 37
0 votes
0 answers
31 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 ...
BeratK2's user avatar
  • 63
0 votes
0 answers
18 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 ...
user avatar
0 votes
0 answers
16 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, ...
user19317635's user avatar
-2 votes
0 answers
59 views

Error while running react - electron in browser - Uncaught ReferenceError: require is not defined

I am tryin to make a electron - react application and while running i am getting a error on the console of the browser. Uncaught ReferenceError: require is not defined at Object.events (bundle.js:...
Sherlock-Holmes-2-2-1's user avatar
-1 votes
0 answers
20 views

How can I require the electron module from within cordova's renderer process?

I created a plain cordova-electron application using this tutorial. I am trying to access the ipcRenderer object of the electron module so I can receive events sent from the main process (cdv-electron-...
nick zoum's user avatar
  • 7,327
0 votes
0 answers
25 views

How to create a Windows installer with UAC prompt using electron-forge?

Is it possible for electron-forge to display a UAC prompt before installation? I looked at the Electron Forge documentation, and it doesn't have any configuration to allow a UAC prompt before ...
Julio de Leon's user avatar
0 votes
0 answers
24 views

Passing headers with session.protocol.handle

When trying to pass a resolved url from inside a protocol handler, session.fetch does not pass any headers. Using request.headers does not work, as it is also empty I have tried getting the headers ...
theMackabu's user avatar
0 votes
1 answer
20 views

Unknown spawn error in electrong-react app

I am making an app in electron and react. The app was working fine until one day this random error popped. Description of error I tried deleting the node_modules folder and reinstalling it but it ...
Ammar Akram's user avatar
0 votes
0 answers
31 views

Why can't Electron load the static file for Next.js?

The out/index.html load and related files (out/_next) generated by Next.js using the static build files of Electron and Next.js are not being loaded. The actual project structure looks like this The ...
Minwoo Kim's user avatar
0 votes
1 answer
36 views

How can I return data from preloaded Electron script?

I have built a function in preload.js that gets a JSON file sent from main.js. renderer.js loads it fine, but I can't seem to give the data to another variable outside of the arrow function. main.js ...
liminalFrog's user avatar
0 votes
0 answers
40 views

I'm having an data loss issue using line Graphs in ApexCharts

ApexCharts seems to modify/remove some data, I'm not quite sure if this is a skill issue of mine, or something else. I'm getting data from an API from my server, the APIs data is intact and seems to ...
ThePyGuy's user avatar
1 vote
1 answer
44 views

How to use context isolation ture with node integration false, In frontend without using Routes instead Js File for load the context body?

I can't use Electron Forge, so in order avoid duplicating header in HTML files, I want the base of the content load using JS function, within the page also I need to do the execution as well HTML ...
Sasanka Weerakoon's user avatar

15 30 50 per page