title: 'TypeError: fs.existsSync is not a function' ReactJS and Electron
body: <p>I'm having an issue where I'm getting a <code>TypeError: fs.existsSync is not a function</code> error when my React App loads.</p>
  
  <p>I'm trying to add functionality to my custom MacOS buttons, however, when I seem to <code>import {remote} from 'electron'</code>, I get that error.</p>
  
  <p>This is the component source code: <a href="https://sourceb.in/1ffad505cd.jsx" rel="nofollow noreferrer">https://sourceb.in/1ffad505cd.jsx</a>
  This is the error generated in the console: <a href="https://sourceb.in/8c01058284.txt" rel="nofollow noreferrer">https://sourceb.in/8c01058284.txt</a></p>
  
  <p>It looks to be an Electron issue but I can't seem to figure out why.</p>
  
  <p>Any help or advice would be much appreciated.</p>