Skip to content

Cannot destructure property 'version' of 'this.$projectDataService.getRuntimePackage(...)' as it is undefined. #5391

@karauda

Description

@karauda

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 7.0.8
  • Cross-platform modules: "@nativescript/angular": "10.0.0"
  • Android Runtime: -
  • iOS Runtime: "@nativescript/ios": "7.0.0"
  • Plugin(s): nativescript-ui-listview, nativescript-ui-sidedrawer

xCode12 / NS7 / Angular10

Describe the bug

App after upgrade NativeScript to v7 and Angular to v10, works perfect when building in debug mode - on emulator and on real iOS device. But when pushing app to TestFlight it is Crashing just after run. So I tried to run on emulator in release mode:

tns run ios --release --clean --emulator

And just after searching for devices I see an error:

Cannot destructure property 'version' of 'this.$projectDataService.getRuntimePackage(...)' as it is undefined.

tns run ios (without release parameter) works, app builded and working well on emulator.

To Reproduce

tns run ios --release --clean --emulator

Expected behavior

expected to work in release mode and on test flight

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions