Cannot seem to figure out what I am doing wrong. Below is my main.js code. The reading from the UART seems to work fine. Just ipcMain and ipcRender are not working. The are not exchanging ping and pong. main.js //////////////////////////////////////////////////////////////////// const { app, BrowserWindow } = require(‘electron’) const path = require(‘path’) var SerialPort = require(‘serialport’) ..
Category : electron

I have created a spa Application using Nuxt and Vuetifyjs. It builds perfectly without errors. After that I tried to create an Electron desktop app using it. So i followed instructions of this. Here is the github link After that I copied the codes from my created nuxt app to electron-nuxt.. It didn’t show any ..
I am new to JavaScript and Electron JS. I am trying to build a Desktop application with a login page.(with Python Backend) I found this github repository for routing in my SPA: electron-quickstart-spa screenshot of my menubar Is it possible to add a page that does not display the menu bar (login screen) ? (before ..
I would like to install electron app in user chosen directory, forbid to run app twice from the same directory and allow to run from two different directories. Problem is, when I try to install app in dir2 the files from di1 dissappears. When I try to install second instance when first is running installer ..
I need help with obfuscating my typescript code. I’m using this Electron template though the issue seems particular to webpack and the obfuscator. https://github.com/codesbiome/electron-react-webpack-typescript-2021 I’m using the following versions: "webpack": "4.46.0", "webpack-obfuscator": "^3.3.0" My configurations are: webpack.main.js module.exports = { /** * This is the main entry point for your application, it’s the first file ..
I want to make an application with electron, and i got the same error again: Uncaught ReferenceError: require is not defined at render.js:8 This is my render.js file: const button = document.getElementById(‘button’); button.onclick = printlog; function printlog() { console.log(‘Print’) } const fs = require(‘fs’); const folder = ‘./src/’; fs.readdir(testFolder, (err, files) => { files.forEach(file => ..

I created a desktop application using python as the backend and Electron JS integrated with Node JS as the front end. The image below is the file tree for my project. I was able to link up both the python with Electron JS using the renderer.js file and my app functions as expected. But my ..
I would like to store some data from within electron’s main.js so that it can be reactively displayed by a window running vue. I have declared a store within store/index.js including state and mutations. This does work when accessed from electron as well as vue but does not share the data between those contexts. So ..
I’m trying to implement lazy loading logic for images on my Electron desktop app. I wanted to use the <img> element with loading attribute to lazy load images; But, I noticed that it only works for remote image; If I tried to set the src to a local image with file://imagePath, The local image still ..
Every Mac app has an about page. Like this It looks fine but I want to be able to customize it like some other apps do. here is an example of this for docker. As far as I can see its possible but is it also possible with electron? Source: Ask Javascript..
Recent Comments