matrix-js-sdk
matrix-js-sdk copied to clipboard
Promise.defer warnings
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
For someone who want to disable warnings:
import Promise from 'bluebird'
Promise.config({
// Disable warnings
warnings: false
})
It would be much better to actually update to use Promises the right way