Uncaught ReferenceError: require is not defined at render.js:1 i electron 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
}
});
});