Mongoose: TypeError: schema.plugin is not a function

Created on 4 Mar 2020  路  2Comments  路  Source: Automattic/mongoose

Do you want to request a feature or report a bug?
Bug

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
Created the model

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node: 12.16.0
Mongoose: 5.9.3

Most helpful comment

Yes! I don't know why it automatically solved! 馃槄馃槀

All 2 comments

Well, this is a type error, which is thrown at compile time of typescript?!

Yes! I don't know why it automatically solved! 馃槄馃槀

Was this page helpful?
0 / 5 - 0 ratings