$ /tutorials

this.$__path is not a function mongoose error

published · 1 minute read · mongoose nodejs mongodb

Currently I faced a strange error with mongoose “this.$__path is not a function”, described here. If you face the same issue I suggest you to update mongoose to the lastest version.

Run

$ npm update mongoose

Personally I encountered problems with version “^5.8.11” and works with “^5.11.11”.