Skip to content

tns preview crashes when scanning on devices with different platforms #4893

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
endarova opened this issue Jul 23, 2019 · 5 comments
Closed
Assignees
Labels
bug preview Describes issues related to preview command severity: high
Milestone

Comments

@endarova
Copy link
Contributor

  • CLI: 6.0.2

If you do preview of project for first time on both ios and android devices, the command crashes with
TypeError: Cannot read property 'hash' of null
at PreviewAppController. (C:\Users\test\AppData\Roaming\npm\node_modules\nativescript\lib\controllers\preview-app-controller.js:130:64)
at Generator.next ()
at fulfilled (C:\Users\test\AppData\Roaming\npm\node_modules\nativescript\lib\controllers\preview-app-controller.js:10:58)
at process._tickCallback (internal/process/next_tick.js:68:7)

To Reproduce

  1. tns create TestApp --js
  2. tns preview
  3. Scan the QR code on android and then scan it on ios device. Preview command crashes.
    On next preview runs everything works as expected
@endarova endarova added bug preview Describes issues related to preview command labels Jul 23, 2019
@endarova endarova added this to the 6.0.3 milestone Jul 23, 2019
@maximus1010101
Copy link

Hello, I have the same problem too after the update.

@ShastinaSandman
Copy link

I have the same problem as well.

@endarova
Copy link
Contributor Author

endarova commented Aug 1, 2019

Other way to reproduce the same error is: tns preview, scan the qr code on some device and then make change in project's package.json file.

@amitdhanaliya
Copy link

Replicated the same issue while previewing the application on an iOS device. Please rectify this asap and let us know the solution.
error

@endarova
Copy link
Contributor Author

Fixed in nativescript@rc (6.1.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug preview Describes issues related to preview command severity: high
Projects
None yet
Development

No branches or pull requests

6 participants