Skip to content

"Tag of undefined" on build time #542

@mylmz10

Description

@mylmz10

Version

2.4.0

Reproduction link

https://play.nativescript.org/?template=play-vue&id=KQ1cFW

Platform and OS info

Android & iOS / NativeScript 6.0 / MacOS

Steps to reproduce

I have a router-view component. Router-View components first child is Frame and it renders own children.

Router module checking the project for if it has Vue-Router by the router-view component parent but I don't use vue-router and I created my own router-view component. So in my app, the router-view hasn't parent and app crash.

What is expected?

router-view is not the built-in plugin in nativescript-vue. It shouldn't happen

What is actually happening?

I get "Cannot read property 'tag' of undefined" error while the router-view is not a built-in plugin in nativescript vue.


The line that throws an exception:
https://github.com/nativescript-vue/nativescript-vue/blob/master/platform/nativescript/compiler/modules/router.js#L6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions