title: Save file using VueJS and Electron
body: <p>I want to save and load JSON from a file which is allocated to my local storage.</p>
  <p>Its my first project using Electron.</p>
  <p>This is my current code and I get this error. <code>fs.readFileSync is not a function</code></p>
  <pre class="lang-js prettyprint-override"><code>&lt;script&gt;
  import timer from &quot;./components/Timer&quot;
  import fs from &quot;fs&quot;
  
  export default {
    name: 'App',
    components: {
      timer
    },
    data() {
      console.log(fs.readFileSync(&quot;timer.json&quot;))
      return {
        timerOptions: null
      }
    },
    created() {
      this.timerOptions = fs.readFileSync(&quot;./timer.json&quot;) // Here I want to load Data, but get the Error
      console.log(this.timerOptions)
    }
  }
  &lt;/script&gt;
  </code></pre>