-
-
Notifications
You must be signed in to change notification settings - Fork 197
Cannot destructure property 'version' of 'this.$projectDataService.getRuntimePackage(...)' as it is undefined. #5391
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
Comments
@karauda I believe I know where this is coming from - can you try setting I believe it fails here: nativescript-cli/lib/services/marking-mode-service.ts Lines 44 to 47 in dd09547
Will be fixing it in a CLI release. |
Still the same:
My nativescript.config.ts:
|
One more important comment - when I have multiple devices/emulators connected, I see the same error - but multiple times. |
What's in your |
|
Also, app builded without --release is working ultra fine, builded with --release is always crashing after splash. |
@rigor789 I am also having the same issue, is there any work-around other than to build without --release? |
@rigor789 I seem to have a similar issue, but my error is I can confirm this happens only when the |
just got the same issue here. Here is the full error stack
The issue is here
For some reason the cli does not find the runtime devDep even though it is here. EDIT: found the issue
@rigor789 i fixed it locally by using |
Did anyone find a workaround for this? Perhaps a different version or something like that. I have updated our entire app to NS7 and Angular 10, because NS6 wasn't playing nicely with iOS14 anymore for me. This seems like a pretty serious issue thats affecting multiple people but it doesn't seem to have much priority. |
This comment was marked as abuse.
This comment was marked as abuse.
@BlueHunter99 right now you can edit
It should work now |
@NathanaelA Sorry for my passive agressiveness, tough morning. @farfromrefug thanks, I'll try it out! |
This comment was marked as abuse.
This comment was marked as abuse.
@BlueHunter99 we too have been trying to go production with NS7 & Angular 10, working thur the issues... mainly syntax changes and package issues... but the --release was a deal breaker for us... so we backed back down to NS6 & Angular 8. I totally get your frustration as we have been switching back and fourth for the last 10 days... We are going to try the patch from @farfromrefug later to day and will let you know if we have any of the freezing issues when we build the --release code.... running it just as ns run ios/android was fine but need to test hard on the --release |
@jwrascoe i did production releases for iOS and Android using the changes above plus the ones here NativeScript/NativeScript#8875 (comment) for snapshot android builds. |
@NathanaelA turns out the freezes were most likely caused by the AutoFitText plugin, because they still very rarely occurred in my NS7 version. Replacing all Will be reporting the bug of AutoFitText when I find some time. So far the only logs I've gotten out of it are from XCode:
|
@BlueHunter99 I finally had the time last night to switch our app back over... All built fine however I used [email protected] for the CLI and @nativescript/[email protected] (just released last night) The patch from @farfromrefug for the CLI is still required to build --release All appears to be working, however I dont use the AutoFitText (but will try) I will publish later today into each app store and see if there is any drama |
@jwrascoe our app is waiting for review as we speak. Using the latest versions of the CLI and core with the manual patch from @farfromrefug. |
@farfromrefug thanks for the tip. Where did you find |
I finally found it and was able to build my project. It was located here: |
@BlueHunter99 we released to production today for both Android & iOS... no crashes.. all seems normal. |
@mreall use find on the command line... |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):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
The text was updated successfully, but these errors were encountered: