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

Bug: Cannot read property 'LayoutParams' of undefined (ui/core/views.js) #3177

Closed
Taremeh opened this issue Nov 26, 2016 · 3 comments
Closed

Bug: Cannot read property 'LayoutParams' of undefined (ui/core/views.js) #3177

Taremeh opened this issue Nov 26, 2016 · 3 comments

Comments

@Taremeh
Copy link

@Taremeh Taremeh commented Nov 26, 2016

Hi!
I upgraded from NS 2.3 to the new 2.4.0 (I installed the new version, removed and added Android platform again, also I installed the core-modules a second time to version 2.4.0). But I still get the following error:

11-26 13:44:04.585  3526  3526 W System.err: 	at com.tns.Runtime.callJSMethodNative(Native Method)
11-26 13:44:04.585  3526  3526 W System.err: 	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:865)
11-26 13:44:04.585  3526  3526 W System.err: 	at com.tns.Runtime.callJSMethodImpl(Runtime.java:730)
11-26 13:44:04.585  3526  3526 W System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:716)
11-26 13:44:04.585  3526  3526 W System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:697)
11-26 13:44:04.586  3526  3526 W System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:687)

The application actually starts (the Nativescript Launch Screen shows up correctly), but then the application crashes (=> screenshot).

Nativescript wants to load my LoginComponent, which uses from "ui/core/view". And there the error happens (for more information have a look at the screenshot):
TypeError: Cannot read property 'LayoutParams' of undefined

Here the screenshot after the app crashes:

https://cloud.githubusercontent.com/assets/1512652/20640619/67d09d8c-b3e3-11e6-8425-d14539b6aaab.png

@petekanev

This comment has been minimized.

Copy link
Contributor

@petekanev petekanev commented Nov 26, 2016

Hey @Taremeh, please delete your node_modules dir, also do tns platform remove android followed by tns platform add android, and then tns plugin add tns-core-modules

@Taremeh

This comment has been minimized.

Copy link
Author

@Taremeh Taremeh commented Nov 26, 2016

Thanks @Pip3r4o !
I deleted and installed the platform, as well as Nativescript itself and the tns-core-modules a couple of times and it works now! Don't know where the error came from, but thanks to a clean reinstallation, everything works fine again. 😄

@Taremeh Taremeh closed this Nov 26, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.