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

Promise.defer warnings #578

Open
Christilut opened this issue Nov 20, 2017 · 2 comments
Open

Promise.defer warnings #578

Christilut opened this issue Nov 20, 2017 · 2 comments
Labels
Easy Help Wanted Extra attention is needed T-Defect

Comments

@Christilut
Copy link

Christilut commented Nov 20, 2017

Getting a lot of these warnings:

Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.

Seems that this is a now deprecated method (though not likely to be removed) in bluebird that causes tons of warnings. Doesn't really matter for production apps but fairly annoying spam in development.

See also petkaantonov/bluebird#555

@tiaod
Copy link

tiaod commented Apr 28, 2018

For someone who want to disable warnings:

import Promise from 'bluebird'
Promise.config({
  // Disable warnings
  warnings: false
})

@f0x52
Copy link

f0x52 commented Aug 28, 2018

It would be much better to actually update to use Promises the right way

@turt2live turt2live added T-Defect Help Wanted Extra attention is needed Easy labels Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Help Wanted Extra attention is needed T-Defect
Projects
None yet
Development

No branches or pull requests

4 participants