title: Am receiving this error in my elctron app (Uncaught ReferenceError: ipcRenderer is not defined) even after setting node integration to true
body: <ol>
  <li>Am receiving this error in my elctron app (Uncaught ReferenceError: ipcRenderer is not defined) even after setting node integration to true</li>
  </ol>
  <pre><code>app.on('ready', function() {
    mainWindow = new BrowserWindow({
      width: 300,
      height: 200,
      webPreferences: {
        nodeIntegration: true
      }
    });
  </code></pre>