Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongoose 7 does not support some callbacks like in 6.x version and it cause exceptions in passport-local-mongoose #369

Closed
kubawasikowski opened this issue Mar 2, 2023 · 1 comment · Fixed by #370

Comments

@kubawasikowski
Copy link

Hello,
recent 7 version of mongoose changed quite a lot and passport-local-mongoose have error with latest version:
MongooseError: Query.prototype.exec() no longer accepts a callback
at model.Query.exec (\node_modules\mongoose\lib\query.js:4281:11)

Thank You for help
Best regards

@kubawasikowski kubawasikowski changed the title Mongoose 7 does not suport some callbacks like in 6.x version and it cause exceptions in passport-local-mongoose Mongoose 7 does not support some callbacks like in 6.x version and it cause exceptions in passport-local-mongoose Mar 2, 2023
@Patrick-Voorhoeve
Copy link

Having the same issue. I've seen suggestions to revert back to 6.1 but this won't work for me. Any other workarounds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants