saraEl
(Sara)
10
I encountered the same issue and resolved it it this way :
I uninstalled the mongoose and mongodb packages.
Afterward, I installed the latest version of mongoose using this command:
npm install mongoose@latest
Upon encountering this error:
“connection error: MongoParseError: options usecreateindex, usefindandmodify are not supported at parseOptions”.
I updated my mongoose connection method. Now, it looks like this:
mongoose.connect(dbUrl);
As a result, everything is now working well.
3 Likes