Skip to content
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

Cannot read property 'nativeView' of undefined #595

Closed
luiguild opened this issue Dec 12, 2019 · 2 comments · Fixed by #602 or raphagoo/runningManApplication#13
Closed

Cannot read property 'nativeView' of undefined #595

luiguild opened this issue Dec 12, 2019 · 2 comments · Fixed by #602 or raphagoo/runningManApplication#13
Assignees

Comments

@luiguild
Copy link

Version

2.4.0

Reproduction link

https://play.nativescript.org/?template=play-vue&id=HFwgqQ&v=2

Platform and OS info

Android Any, NativeScript 6.0.1 & Nativescript-Vue 2.4.0, Windows 10

Steps to reproduce

1 - Create a vue plugin
2 - Use Vue mixin inside the Install function
3 - Just try log the 'this.$options'

What is expected?

Affect every Vue instance created afterwards with a new 'beforeCreate' method

What is actually happening?

Error in mounted hook: "TypeError: Cannot read property 'nativeView' of undefined"

@msaelices msaelices self-assigned this Jan 13, 2020
rigor789 pushed a commit that referenced this issue Jan 13, 2020
* chore(samples): add sample app for reproducing #595

* fix: fix "TypeError: Cannot read property 'nativeView' of undefined" accessing this.$options
@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 Feb 3, 2020
@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.