I'm trying to learn nativescript with vue.
I've learned about the devtools, and the fact that there should be an Electron standalone app, with
npx vue-devtools, but it does'nt open any window., although the Electron processes are spawning.
It's a basic app built with
vue init nativescript-vue/vue-cli-template <name>, so it should work "out of the box", kinda.
The app does work, both on emulator and on real device, so I don't know whats wrong. I've already reinstalled and re-init the projects multiple times, but nothing chanded.
This is the package.json
"name": "test_devtools",
"version": "1.0.0",
"description": "A native application built with NativeScript-Vue",
"author": "none",
"license": "MIT",
"nativescript": {
"id": "org.nativescript.application",
"templateVersion": "v2",
"tns-android": {
"version": "6.5.0"
},
"tns-ios": {
"version": "6.5.0"
}
},
"dependencies": {
"@nativescript/theme": "^2.2.1",
"nativescript-socketio": "^3.3.1",
"nativescript-toasty": "^3.0.0-alpha.2",
"nativescript-vue": "^2.6.0",
"tns-core-modules": "^6.5.1"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@vue/devtools": "^5.3.2",
"babel-loader": "^8.1.0",
"nativescript-dev-webpack": "^1.5.1",
"nativescript-vue-devtools": "^1.2.0",
"nativescript-vue-template-compiler": "^2.6.0",
"nativescript-worker-loader": "~0.11.0",
"node-sass": "^4.13.1",
"vue-loader": "^15.9.1"
}
}
And the main.js
import Vue from "nativescript-vue";
import App from "./components/App";
Vue.use(VueDevtools);
// Prints Vue logs when --env.production is *NOT* set while building
Vue.config.silent = TNS_ENV === "production";
Vue.config.devtools = true;
new Vue({
render: (h) => h("frame", [h(App)]),
}).$start();