mongoose-materialized icon indicating copy to clipboard operation
mongoose-materialized copied to clipboard

Can't use ES6 promise with mpromise style constructor

Open countzero opened this issue 8 years ago • 5 comments

If I use the plugin as is, I get a warning:

DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, 
plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

If I replace the default Mongoose promise library with the ES6 promise library

mongoose.Promise = global.Promise;

I get an error from your code:

Error: Can't use ES6 promise with mpromise style constructor

Any Ideas?

countzero avatar Nov 02 '17 10:11 countzero

I've got the same problem. Is there a fix for this?

abrylov avatar Nov 21 '17 17:11 abrylov

+1

assaf-cream avatar Nov 28 '17 14:11 assaf-cream

Can't make the library work with Mongoose 5 :cry:

esabalza avatar Jan 02 '18 13:01 esabalza

Sorry Guys,

I still work on this issue but, i don't have enough time to do fast. I release a new version soon.

janez89 avatar Jan 03 '18 13:01 janez89

Any updates on this?

haraldini avatar Apr 09 '18 12:04 haraldini