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

DeprecationWarning: Unhandled promise rejections are deprecated. #11

Closed
JohannesHoppe opened this issue Feb 19, 2017 · 10 comments
Closed

Comments

@JohannesHoppe
Copy link
Member

by @tkow
from angular/angular-cli#4385 (comment)

However, I have another problem catch message says "An error occurred!" in node v.7.4.0.
and details bellow.

(node:6042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Unspecified error (run without silent option for detail)
(node:6042) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Please tell me how it cause to address, if there are someone feel not uncomfortable.I'll try to downgrade node version.Then , I move to angular-buch/angular-cli-ghpages repository for this ploblem is not angular-cli.

@JohannesHoppe
Copy link
Member Author

@tkow This warning should be pretty easy to fix.

@tkow
Copy link

tkow commented Feb 23, 2017

@JohannesHoppe Thanks for tips.I'll check it.

@JohannesHoppe
Copy link
Member Author

Just catching the promise and then displaying it with console.log. Right now I let it go through so that node.js complains.

@hiepxanh
Copy link

hiepxanh commented Mar 7, 2017

how to resolve this issue ?

@JohannesHoppe
Copy link
Member Author

JohannesHoppe commented Mar 7, 2017

There are two aspects:

  1. A deprecation. Don't worry, right now it's just a warning. I should fix this one day.
  2. But there is also a hidden error. Please refer to https://github.com/angular-buch/angular-cli-ghpages#--no-silent if you want to see the content.

@hiepxanh
Copy link

hiepxanh commented Mar 7, 2017

wow, so quickly, I love this. Thanks you so much, I don't feel worry any more

@hiepxanh
Copy link

hiepxanh commented Mar 7, 2017

image
why ? it push successful after i run no silent ! Oh my god !!!!!!!!!!!!

@JohannesHoppe
Copy link
Member Author

Dude, this command is supposed to do exactly this!
To push to "any gh-pages branch on GitHub (or any other branch on any other remote). " 🤣

@JohannesHoppe
Copy link
Member Author

Fixed by 3f40bd1

@gapgag55
Copy link

I solved by using "sudo angular-cli-ghpages"

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

No branches or pull requests

4 participants