Trying to execute a shell script in my Angular application has been quite the challenge. I came across the "child process" node library that might be able to help me with this task. However, every attempt to import the library led me to the error message: ...
I am completely new to electron. My main goal is to load a URL and then execute some Javascript that will make changes to the DOM. Currently, my approach involves creating a BrowserWindow that loads the URL, and I understand that I can utilize webContents ...
My Electron.js project setup includes the following steps: Installing node 14 Installing vue-cli Creating a template project in Vue with: vue create myproject Adding an Electron wrapper like this: vue add electron builder Installing the better-sqlite3 lib ...
After trying to install the latest version of Electron using npm install electron@latest on my MacOS, I encountered issues while running the electron command. The error messages found in the log file are as follows: 117 error code ELIFECYCLE 118 error err ...
In the process of developing an Electron app with Angular, I encountered a situation where clicking on an Electron menu item triggers an IPC to app.component.ts in order to switch views. The code below functions properly, but when attempting to use router. ...
I encountered an unexpected error while attempting to run next.js in development mode. The strange part is that I'm not utilizing electron in this application at all. An uncaught TypeError occurred: Cannot use 'in' operator to search for 'electron' in und ...
I've been working on a desktop application using Nextron (Electron.js + Next.js). Attempting to activate context isolation from BrowserWindow parameters, I have utilized the following code: contextIsolation: true However, it seems that this doesn't work ...
Looking to incorporate Electron, Preload, Renderer with ReactJS and TypeScript into my project. <index.html> <body> <div id="root" /> <script src='./renderer.js'/> </body> <index.ts> const root = ReactDOM.cre ...
I've been attempting to set up the opencv.js emscripten port in my electron app. I came across this sample application using opencv.js, but integrating it into my electron project is resulting in some obscure errors. Whenever I try to require opencv. ...
I'm currently developing a desktop application using electron and contemplating utilizing online storage to save data. I've scoured the internet for answers but can't seem to find reliable information. One possible approach is to integrate an electron app ...
I am currently learning electron.js by developing a basic application that extracts information from a website. However, I am encountering a frustrating and annoying error. Here is the folder structure of my project The following code snippet represents ...
I am in need of help with my template files which have variable strings. I want to create a basic input form using Electron (https://www.electronjs.org/) and save the resulting output file on the user's device. Could someone recommend a module that e ...
In a Nutshell: While developing a single-page website with Electron, I encountered the common issue of jQuery not being globally accessible. To tackle this problem, I decided to simplify it by using a quick start example, but unfortunately, I'm strugg ...
I am currently developing an Electronjs application that requires playing very large videos stored on the user's machine. I have experimented with using both the vanilla HTML5 video tag and other players. Interestingly, small videos load and play without a ...
After thoroughly going through Electron's explanations on context isolation, IPC, and security, as well as delving into discussions like this thread about nodeIntegration and this post regarding preload.js, it's clear that there are various approaches to a ...
The Issue at Hand I'm facing trouble while attempting to globally install Electron on my system using the command below: npm install electron -g However, I keep running into this frustrating error message: unable to verify the first certificate Here's th ...
I have been utilizing Cypress to run tests on my Electron application. Due to Cypress operating in browser mode, the FS module is not compatible. As a result, I am encountering this error: Error in mounted hook: "TypeError: fs.existsSync is not a func ...
I am currently working on developing a small electron application that combines multiple PDF files or pages into one larger page to help save paper when printing several CAD drawings. Essentially, I am looking for a cross-platform solution similar to the ...
After setting up an Angular 7 application running on http://localhost:4200, I developed a Node JS application responsible for authenticating users on Facebook, accessible at http://localhost:3000. The callback redirection functions correctly within the No ...
I am facing an issue while trying to run my electron app with TypeScript and webpack. I have a main.ts file along with the compiled main.js file. To troubleshoot, I made some edits to the main.js file to verify if the "ready" function is being called. ...
I am working on a Todo App and facing an issue where the scrollbars don't focus on the bottom of the page when adding a new element. How can this problem be resolved? https://i.stack.imgur.com/IzyUQ.png ...
I am encountering difficulties while working with electron. Although I can successfully load my project using ng serve, I encounter an error when attempting to open it with electron as shown in the developer tools Not allowed to load local resource: fil ...
I am struggling to find a solution for automatically reading and parsing a local csv file in an electron application. When I use 'fs' to open the file, I can't figure out how to pass the contents into the HTML window. One option is to use a ...
I am currently exploring different paths to take. I need to establish a well-structured foundation, essentially a skeleton app that other developers can use as a starting point for coding. Here are the requirements: - Web application (SQL Server) - Deskto ...
What is the best way to integrate custom environment variables into my Electron application? I need to securely store API keys and other sensitive information without hardcoding them directly into the code. My app is built with Vue and Electron. To tackle ...
Currently, I have successfully developed an Electron application that functions flawlessly on Mac OS. However, when the app is relocated to the Applications folder, it becomes inconvenient as I need to manually double click on it every time to launch. To ...
I am currently working on passing light mode and language data from ipcMain to ipcRenderer via my preload script: Preload.js: const { contextBridge, ipcRenderer } = require("electron"); const ipc = { render: { send: ["mainMenuUpdate& ...
I am currently in the process of developing an application that makes use of the node-bluetooth module from npm. However, I have encountered the following error: App threw an error during load Error: The module '/home/pi/AlucentOs/node_modules/node- blue ...
While utilizing Angular 10 in my Electron application, I encountered some errors after building a release version of the app. These errors are visible in the Chrome Inspector, but it's unclear whether they stem from Electron or Angular, and the messag ...
I am looking to retrieve the responses for all requests made in my electron app from the main process. In this image, it shows that the desired response can be found in the Response tab rather than the Headers tab on Chrome Dev Tools. Instead of using a ...
I am currently developing a project using Angular 6 integrated with Electron. I have managed to successfully incorporate the electron-log library using ngx-electron. As a result, my application is functioning well and logging data to the default path: C:&b ...
Working on some ElectronJS HTML coding and in need of using JQuery within the HTML. I've gone ahead and installed jQuery with npm install jquery. The question is, which file do I import to make use of JQuery? <!DOCTYPE html> <html lang="en" ...
I'm in the process of transforming a web-based React + Redux + MUI application into an Electron app. The original app features a main AppBar with multiple dropdown menus, each containing menu items that interact with the app's Redux store. While ...
Currently, I am developing an electron application. In my index.html file, I have successfully loaded JavaScript files in the head tag and can access the JS functions without any problems. Now, I have created a separate browser window with another HTML fi ...
When attempting to implement gray-matter in an electron application, I encountered the error message utils.js:36 Uncaught ReferenceError: Buffer is not defined. Is there a method or workaround available to utilize Buffer within electron? ...
I'm struggling to assign the result of a select query using Knexjs to a variable. Here is my code: function getAllCategories() { let categories; categories = database.from("categories").select("category").then(function (rows) { for (let row of ro ...
Description Within my project, I am handling a JSON file, parsing it into an object, and attempting to transform it into an instance of the ProjectFile class using Object.create(). Code let tmpFileContent = fs.readFileSync(tmpPath, {encoding: 'utf-8'}); ...
My electron console kept showing errors for this code, while the same code ran without any issues in a regular web browser: import React, { Component } from 'react'; import { Router, Route, Link, browserHistory ,hashHistory} from 'react-router' import ...
Encountering an issue while trying to resolve this problem. Upon installing electron globally using NPM, the following error is displayed: ole@mki:~/angular-electron$ sudo npm install electron -g /usr/bin/electron -> /usr/lib ...
I am currently developing a Vue and Electron application and I encountered a problem while trying to restart the application. Here is my code snippet: import { app } from 'electron'; export default { name: 'Home', methods: { restartApp() { a ...
I am currently working on my first project using Angular 4 and Electron to develop a desktop application. One of the challenges I'm facing is figuring out how to redirect to a specific component when a submenu item is clicked after overriding the electron ...
Can someone assist me with the following request? I am working on an electron app, which is a very simple quick start app. I am using Visual Studio Code to view the code and running the project from the terminal window with the command "npm start", which ...
I am encountering an issue while using the express library in my main.js file. It functions properly during development build, but when I package the application, I receive the following error: Error: Cannot find module 'express' I am uncertain about h ...
I'm currently in the process of setting up Electron on my Windows 10 system by executing these commands: - git clone https://github.com/electron/electron-quick-start - cd electron-quick-start - npm install - npm start Environment variables have already b ...
As I opened my Visual Studio Code today, a notification greeted me about a new update. Without hesitation, I went ahead and installed it, assuming it would be like any other update I've had in the past. However, after updating to version 1.22.1, I encounte ...
When it comes to installing Electron for an Electron app with React, the method can vary depending on the tutorial. Some tutorials use electron-builder while others do not, but there is little explanation as to why. First: npx create-react-app app cd app ...
I've been tirelessly searching to understand the root cause of this issue, and I believe I'm getting closer to unraveling the mystery. My method involves using USB detection to track the connection of USB devices: usbDetect.on('add', () => sendDeviceLis ...
Currently, I am attempting to utilize node-fetch in order to download a zip file from a specific URL. However, I keep encountering this error message: TypeError: res.body.pipe is not a function After upgrading my Electron app version from "electron&q ...