Can someone explain to me why this error occurs?

Hello @Hung_Viet,

A little information would be great to debug your problem, your screenshot is not even opening on click,

I guess, It looks like you are using mongoose npm and they have removed the callback function in many methods in the latest mongoose version 7,

Read the migrating guide,

You need to use .then() instead of the callback function, => {