Closed xyleen closed 9 years ago
The commit above will work only with mongoose > 4.1.2 - there should be some code added for the backwards compatibility.
Fixed and released in 2.0.0. Thanks for the detailed report and suggested fix.
@buunguyen - thank you! :)
Hey @buunguyen I'm using 4.2.3 and deep populate version 2.0.2. When I switch out the mongoose promise constructor for an ES6 promise, I get the same error. When I go into the code from your last commit and just return an ES6 promise it works fine. Any suggestions?
@zekenie it's a bug. Please try 2.0.3 and let me know.
Works!
Hey!
(probably) Due to mongoose issue #2688, introduced in version 4.1.0, this library does not work properly when using external promise libraries as promise providers for mongoose.
I've tested this with mongoose@4.1.2.
Here is a test case for using Q.js as a promise provider for mongoose:
This ends up in the following error:
which can be further traced:
Also, passing test case for mongoose's internal promise library (mpromise):