Performance: let MongoDB return errors instead of preventing them

Okk, sorry I didn’t understand it was only a druver… So I installed it through npm, I know have both Mondob NodeJS Driver and mongoose installed (I hope there won’t be any conflict but at the moment all my tests pssed!). But even with the driver installed, I stiull have the error “MongoServerError is not defined”. I found a require on the net const MongoServerError = require("mongodb-core").MongoServerError; but when called I still have “MongoServerError is undefined”. Do you know if I should require it in an other way?
I followed the installation instructions but after that not the “starts a server” instructions, since I connect to a remote Atlas server.
Thanks a lot for your concern