janez89 / mongoose-materialized

mongoose materialized plugin
59 stars 22 forks source link

Can't use ES6 promise with mpromise style constructor #36

Open countzero opened 6 years ago

countzero commented 6 years ago

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?

abrylov commented 6 years ago

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

assaf-cream commented 6 years ago

+1

esabalza commented 6 years ago

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

janez89 commented 6 years ago

Sorry Guys,

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

haraldini commented 6 years ago

Any updates on this?