[Vuejs]-Cannot get vue-devtools standalone app to work, on vue-nativescript

0👍

In main.js you need to first import devtools, make it the first import:

import VueDevtools from 'nativescript-vue-devtools'

then, below (doesn’t have to necessarily be the next statement you can position it lower in the file):

if (TNS_ENV !== 'production') {
  Vue.use(VueDevtools)
}

It works this way.

Leave a comment