DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version

UPDATE

mongodb@3.6.5 is out.

Just update mongodb driver and mongoose:

npm i mongodb mongoose

This is caused by the mongodb@3.6.4 native driver which is used by mongoose.

#1 You can downgrade mongodb to version 3.6.3 (described here).

#2 Or downgrade mongoose from 5.11.16 back to 5.11.15:

npm uninstall mongoose
npm install mongoose@5.11.15

#3 Or just wait for the release of mongodb@3.6.5.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)