Uncaught ReferenceError: require is not defined at main.js:1 in electron code example
Example: electron Uncaught ReferenceError: require is not defined at recorder.js:1
app.on('ready', () => {
mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true
}
});
});