Skip to content

Commit

Permalink
fix: nativescript-vue-devtools can't detect vuex
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
the1900 authored Aug 1, 2019
1 parent 7870b87 commit a06f149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template/app/main.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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');

Expand Down

0 comments on commit a06f149

Please sign in to comment.