Skip to content

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

Closed
@endarova

Description

@endarova
  • 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions