From a06f14925d66b7c8768a4c993a9600cbc3f693b4 Mon Sep 17 00:00:00 2001 From: the1900 Date: Thu, 1 Aug 2019 18:08:44 +0900 Subject: [PATCH] fix: nativescript-vue-devtools can't detect vuex According to nativescript-vue/nativescript-vue-devtools#2 import `vuex` statement should be under `nativescript-vue-devtools` and It is true. I tested in my own. --- template/app/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/app/main.ts b/template/app/main.ts index 27db147..f3457fe 100644 --- a/template/app/main.ts +++ b/template/app/main.ts @@ -1,6 +1,5 @@ import Vue from 'nativescript-vue'; import App from './components/App.vue'; -{{#store}}import store from './store';{{/store}} {{#devtools}}import VueDevtools from 'nativescript-vue-devtools'; @@ -9,6 +8,8 @@ if(TNS_ENV !== 'production') { } {{/devtools}} +{{#store}}import store from './store';{{/store}} + // Prints Vue logs when --env.production is *NOT* set while building Vue.config.silent = (TNS_ENV === 'production');