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