title: Nativescript-Vue: 'tns preview' error with loading Vuex?
body: <p>For a trivia app I'm developing for mobile, I'm using Nativescript-Vue to develop. The app runs fine and without errors when running it with xcode iOS emulator. However, when I try to run a preview (with the terminal command: 'tns preview') the app runs but when I try to start a game the app throws an error: </p>
  
  <pre><code>CONSOLE ERROR file:///app/tns_modules/nativescript-vue/dist/index.js:2129:20: [Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating 'this.$store.getters')"
  
  found in
  
  ---&gt; &lt;App&gt; at App.vue
         &lt;Frame&gt;
          &lt;Root&gt;
  LOG from device iPhone CONSOLE ERROR file:///app/tns_modules/nativescript-vue/dist/index.js:2129:20: [Vue warn]: Error in nextTick: "TypeError: undefined is not an object (evaluating 'this.$store.getters')"
  </code></pre>
  
  <p>I'm trying to run it using the playground app on my iPhone SE and scanning the qr-code. I'm thinking it has something to do with the app not being able to access the VueX store or something. But I'm kind of at a loss. I've seen the 'tns preview' command work, but that was with a Vue app without Vuex. Do you know what I might be doing wrong?</p>
  
  <p>UPDATE: after adding <code>Vue.prototype.$store = store</code> in main.js, I get a slightly different error: </p>
  
  <pre><code>CONSOLE ERROR file:///app/tns_modules/nativescript-vue/dist/index.js:2129:20: [Vue warn]: Error in render: "TypeError: this.$store.getters is not an Object. (evaluating 'val in this.$store.getters')"
  </code></pre>
  
  <p>Still don't know what can be wrong, but I do know the tns preview works when disabling / commenting out all things related to the store in the code, so it defintely got something to do with that. Please help, I really want to show this app to somebody on their phone.</p>