Skip to content

TypeError: Cannot read property 'data' of undefined when using RadSideDrawer navigation and vue-router #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
msaelices opened this issue Aug 2, 2018 · 2 comments

Comments

@msaelices
Copy link

msaelices commented Aug 2, 2018

Version

2.0.0-alpha.1

Reproduction link

app-with-radsidedrawer-tabs-and-router.js

Platform and OS info

Android 8.0

Steps to reproduce

Just run the app-with-radsidedrawer-tabs-and-router.js sample app.

What is expected?

the app should appear

What is actually happening?

the app is crashing

System.err: TypeError: Cannot read property 'data' of undefined
System.err: File: "file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js, line: 3924, column: 8
System.err: 
System.err: StackTrace: 
System.err: 	Frame: function:'created', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 7098, column: 25
System.err: 	Frame: function:'callHook', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4965, column: 21
System.err: 	Frame: function:'Vue._init', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 12827, column: 5
System.err: 	Frame: function:'VueComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 12994, column: 12
System.err: 	Frame: function:'createComponentInstanceForVnode', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 12497, column: 10
System.err: 	Frame: function:'init', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 12327, column: 48
System.err: 	Frame: function:'createComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5180, column: 9
System.err: 	Frame: function:'createElm', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5125, column: 9
System.err: 	Frame: function:'createChildren', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5257, column: 9
Android: System.err: 	Frame: function:'createElm', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5156, column: 9
System.err: 	Frame: function:'patch', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5762, column: 7
System.err: 	Frame: function:'Vue._update', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4701, column: 19
System.err: 	Frame: function:'updateComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4831, column: 10
Android: System.err: 	Frame: function:'get', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 3919, column: 27
Android: System.err: 	Frame: function:'Watcher', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 3908, column: 47
Android: System.err: 	Frame: function:'mountComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4838, column: 3
Android: System.err: 	Frame: function:'Vue.$mount', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 13383, column: 10
System.err: 	Frame: function:'init', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 12333, column: 13
Android: System.err: 	Frame: function:'createComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5180, column: 9
System.err: 	Frame: function:'createElm', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5125, column: 9
Android: System.err: 	Frame: function:'patch', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 5762, column: 7
Android: System.err: 	Frame: function:'Vue._update', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4701, column: 19
Android: System.err: 	Frame: function:'updateComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4831, column: 10
Android: System.err: 	Frame: function:'get', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 3919, column: 27
Android: System.err: 	Frame: function:'Watcher', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 3908, column: 47
Android: System.err: 	Frame: function:'mountComponent', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 4838, column: 3
Android: System.err: 	Frame: function:'Vue.$mount', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 13383, column: 10
Android: System.err: 	Frame: function:'application.on.args', file:'file:///data/data/org.nativescript.vuesample/files/app/nativescript-vue.js', line: 13401, column: 10

@msaelices
Copy link
Author

Fixed here: 2b9a5ba

@rigor789 could you review the commit? I do not know if the commit is a code smell and the if hides a inner issue.

@nativescript-vue-bot
Copy link
Collaborator

We are locking this issue because it has been closed for more than 14 days.

If the issue comes up again please open a new issue with additional details.

@nativescript-vue nativescript-vue locked as resolved and limited conversation to collaborators Aug 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants