Skip to content

'tns build android' issue breaks application #8541

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
CatchABus opened this issue Apr 16, 2020 · 1 comment
Closed

'tns build android' issue breaks application #8541

CatchABus opened this issue Apr 16, 2020 · 1 comment

Comments

@CatchABus
Copy link
Contributor

CatchABus commented Apr 16, 2020

Environment

  • CLI: 6.4
  • Cross-platform modules:
  • Android Runtime: 6.4.1
  • iOS Runtime:
  • Plugin(s):

Describe the bug
I built an android app bundle (.aab) and installed it on my phone. That was when I noticed that half of my pages were blank for no reason. The reason for this was that in some pages I had a "$parents['BottomNavigation']" reference in order to use certain properties from my root binding context, so I checked command parameters and problem was gone when I removed '--env.uglify'.

To Reproduce
Add a '$parents' root binding inside one of application pages (e.g. $parents['Frame']).
Then, build and install application using the following command:
tns build android --release --bundle --env.uglify --key-store-path --key-store-password --key-store-alias --key-store-alias-password --aab

Execute command again after removing '--env.uglify' to notice the difference.

Expected behavior
Bundle should be exported without issues.

Sample project

@CatchABus
Copy link
Contributor Author

A correct description of this issue has been made here: NativeScript/nativescript-dev-webpack#1142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants