Answers for "require is not define on html script"

0

require is not define on html script

mainWindow = new BrowserWindow({
        webPreferences: {
            nodeIntegration: true
        }
    });
Posted by: Guest on April-05-2022
0

why does it say require is not defines

// In the Main.js file in electron
app.on('ready', () => {
    mainWindow = new BrowserWindow({
      // Add these lines of code and it should start working
        webPreferences: {
            nodeIntegration: true,
            contextIsolation: false,
        }
    });
});
Posted by: Guest on April-04-2021

Code answers related to "require is not define on html script"

Browse Popular Code Answers by Language