Cannot destructure property 'version' of 'this.$projectDataService.getRuntimePackage(...)' as it is undefined.
See original GitHub issueEnvironment
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (7 by maintainers)
@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 forgetInstalledRuntimePackage
function. 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