matrix-js-sdk icon indicating copy to clipboard operation
matrix-js-sdk copied to clipboard

Promise.defer warnings

Open Christilut opened this issue 8 years ago • 2 comments

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 https://github.com/petkaantonov/bluebird/issues/555

Christilut avatar Nov 20 '17 12:11 Christilut

For someone who want to disable warnings:

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

tiaod avatar Apr 28 '18 08:04 tiaod

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

f0x52 avatar Aug 28 '18 10:08 f0x52