Skip to content
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

Error while loading nativescript-cloud is: Default commands should be required before child commands #5404

Open
abcfoundry opened this issue Oct 1, 2020 · 10 comments
Labels
cloud Describes issues related to cloud operations

Comments

@abcfoundry
Copy link

running latest CLI ... Sept 30th build
ns -v = 7.0.9-2020-09-30-180843-14270

running - tns debug android --env.aot --no-hmr --emulator

Error while loading nativescript-cloud is: Default commands should be required before child commands

@abcfoundry abcfoundry changed the title CLI gives error Error while loading nativescript-cloud when trying to tun tns CLI gives error Error while loading nativescript-cloud when trying to run tns Oct 1, 2020
@rigor789 rigor789 added bug cloud Describes issues related to cloud operations labels Oct 3, 2020
@rigor789
Copy link
Member

rigor789 commented Oct 3, 2020

The command should continue running despite the error. Will be looking into why it happens.

@rigor789 rigor789 modified the milestone: 7.0.11 Oct 16, 2020
@rigor789
Copy link
Member

Ok, the issue is that if you have nativescript-cloud installed on your system (from older cli for example), it adds conflicting commands to the CLI and causes the issue. In particular it adds config get/set commands that are now in the CLI by default.

Since nativescript-cloud in it's current form is not used - you can safely uninstall it with

ns extension uninstall nativescript-cloud

And the error should disappear.

@rigor789 rigor789 changed the title CLI gives error Error while loading nativescript-cloud when trying to run tns Error while loading nativescript-cloud is: Default commands should be required before child commands Oct 21, 2020
@rigor789 rigor789 removed the bug label Oct 21, 2020
@rigor789 rigor789 pinned this issue Oct 21, 2020
@MrSnoozles
Copy link

This worked for me.

@DavidKroese
Copy link

Uninstalling the nativescript-cloud worked for me too!

@jdnichollsc
Copy link

jdnichollsc commented Oct 30, 2020

ns extension uninstall nativescript-cloud doesn't work for me (command not found: ns), exist any other command to remove extensions?
Thanks!

@rigor789
Copy link
Member

@jdnichollsc tns extension uninstall nativescript-cloud perhaps? Though if ns doesn't exist on your machine, you are likely using an old version of the CLI that should not have the error in the first place... (i'm confused)

@jdnichollsc
Copy link

Oh excellent, it's working now! thanks for your help! <3

@mmarquesbr
Copy link

Perfectly working now! Thanks! ;o)

@lostation
Copy link

Mmm I've just upgraded from NS6 to NS7.1.2 and for me it doesn't seem to work...
Strange ... any command give me this error... except the simple ns --version... Obviously I've tried... ns, tns --> same error.

Is there another way to remove Nativescript-cloud ?
The migration script shouldn't remove it if it unused with new version ?

@lostation
Copy link

Ok simply from another terminal...tns (or ns) extension uninstall nativescript-cloud has worked. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud Describes issues related to cloud operations
Projects
None yet
Development

No branches or pull requests

7 participants