electron Cant find module remote in the renderer process
<p>I recently upgraded to electron v1.3 from 0.37 and get Cannot find module 'remote' in the renderer process.</p>

<p>Been combing through the docs and haven't been able to come up with much</p>

<p>here's a part of my code</p>

<p><strong>RENDERER JS FILE</strong></p>

<pre><code>var remote = require('electron').remote;
const ipcRenderer = require('electron').ipcRenderer;
const session = remote.require('electron').session; //i'm trying to use the session module here
var app = remote.require('electron').app; //and here too
</code></pre>

<p><strong>MAIN JS PROCESS</strong></p>

<pre><code>const {app} = require('electron')
var fs = require('fs');
const {ipcMain} = require('electron')
const {BrowserWindow} = require('electron')
const {session} = require('electron')
const {dialog} = require('electron')
</code></pre>