title: how to load electron module in typescript
body: <p>I try to get the ipcRenderer module from electron in typescript to send informations from the current component to the core and to get informations back to the window (electron-chromium-browser).
  All I get is a error "Module not found" by transcoding the ts-code to ES5.</p>
  
  <p>const ipc = require('electron').ipcRenderer;`</p>
  
  <p><strong>Update:</strong> The Error is switching between the "Module not found" and this one: </p>
  
  <p><code>ERROR in ./~/electron/index.js
  Module build failed: Error: ENOENT, open '/.../node_modules/electron/index.js'
   @ ./app/components/search/search.ts 12:10-29</code></p>
  
  <p>That is from the current <a href="https://github.com/atom/electron/blob/master/docs/api/ipc-main.md" rel="noreferrer">electron-api</a>. I have also tried to use the import syntax from typescript but the result is the same.</p>
  
  <p>Than I tried to use the electron.ipcRenderer module in a ES5-file, loaded/linked directly in the html-file.</p>
  
  <p>There it worked. Why?</p>