Skip to content

tns prepare <platform> fails with Unhandled promise rejection #3054

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

Closed
TsvetanMilanov opened this issue Aug 11, 2017 · 0 comments
Closed

tns prepare <platform> fails with Unhandled promise rejection #3054

TsvetanMilanov opened this issue Aug 11, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@TsvetanMilanov
Copy link
Contributor

TsvetanMilanov commented Aug 11, 2017

When a plugin has before/after prepare hook which is a promise and it is rejected without error the CLI fails with TypeError: Cannot read property 'stopExecution' of undefined at maybePromise.then (D:\Work\nativescript-cli\lib\common\services\hooks-service.ts:135:28)

Steps to reproduce:

  1. tns create test
  2. cd test
  3. tns plugin add [email protected]
  4. tns prepare android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants