nativescript-cli: Cannot destructure property 'version' of 'this.$projectDataService.getRuntimePackage(...)' as it is undefined.
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (7 by maintainers)
Commits related to this issue
- fix: platform sometimes not in lower case closes #5391 — committed to NativeScript/nativescript-cli by rigor789 4 years ago
- fix: platform sometimes not in lower case (#5406) closes #5391 — committed to NativeScript/nativescript-cli by rigor789 4 years ago
@BlueHunter99 right now you can edit
nativescript/cliservices/project-data-service.js. You need to find where it is installed on your computer. Open it then look forgetInstalledRuntimePackagefunction. add this line at the begining of the method:It should work now
@mreall use find on the command line…
sudo find / -name project-data-service.js