nativescript-vue and nativescript-vue-template-compiler versions must be compatible with each other.
Currently;
nativescript-vue (v2.4.0), nativescript-vue-template-compiler (v2.2.2)
The plugin throws an exception(tag of undefined) while rendering the template in the following line;
https://github.com/nativescript-vue/nativescript-vue/blob/master/platform/nativescript/compiler/modules/router.js#L6
In our current implementation, router-view does not have a parent. But nativescript-vue-template-compiler expects router-view to have a parent after v2.2.2.
Suggestions to fix the issue
- Change router-view implementation to have a parent in App.vue or main.native.js
- Create an issue to change the implementation that requires a parent for router-view. In our opinion, it may not be necessary to check if the router-view element has a parent.