Reactgo: DeprecationWarning: Mongoose: mpromise (non-breaking)

Created on 30 Aug 2016  路  7Comments  路  Source: reactGo/reactGo

On latest Node (6.5.0) + MongoDB/Mongoose:

禄 webpack building...
禄 webpack built ff1021efcf55585d47d0 in 6985ms
禄 (node:1417) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

禄 webpack building...
禄 webpack built 1de34508433fa00a90fc in 654ms

Most helpful comment

why not remove bluebird in favor of es6-promise, add mongoose.Promise = global.Promise; to connect? One less dep...

All 7 comments

this can be easily fixed by adding

mongoose.Promise = global.Promise;
in server/db/mongo/connect.js

but I don't think we need to make PR because it's up to users to choose which promise library they wanna use.

might be good to settle for one though - currently package.json includes both es6-promise and bluebird

@psimyn I don't know bluebird well because I only use es6-promise. Can bluebird be replaced with es6-promise?

why not remove bluebird in favor of es6-promise, add mongoose.Promise = global.Promise; to connect? One less dep...

Let's try removing bluebird and using es6-promise. I like removing dependencies :)

So... instead of removing Bluebird, let's just add this to hide the warning?

mongoose.Promise = global.Promise;
Was this page helpful?
0 / 5 - 0 ratings

Related issues

evansteelepdx picture evansteelepdx  路  3Comments

azamatsmith picture azamatsmith  路  6Comments

davidychow87 picture davidychow87  路  4Comments

elitekode picture elitekode  路  8Comments

choonkending picture choonkending  路  4Comments