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