The new version 5.11.0 has removed some of the methods of mongoose. We are getting an error as we have put “mongoose”: “^5.9.21” in package.json. We had to modify it to “mongoose”: “~5.9.21” to make it run.
Please look into this issue. As many developers will face the same.