Category : electron

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’) ..

Read more

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 ..

Read more

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 => ..

Read more