Why do I get this Error in Mongodb Node.js Driver?

the options [_events] is not supported

the options [_eventsCount] is not supported
the options [_maxListeners] is not supported
the options [s] is not supported
the options [connect] is not supported
the options [logout] is not supported
the options [close] is not supported
the server/replset/mongos/db options are deprecated, all their options are supported at the top level of the options object [poolSize,ssl,sslValidate,sslCA,sslCert,sslKey,sslPass,sslCRL,autoReconnect,noDelay,keepAlive,keepAliveInitialDelay,connectTimeoutMS,family,socketTimeoutMS,reconnectTries,reconnectInterval,ha,haInterval,replicaSet,secondaryAcceptableLatencyMS,acceptableLatencyMS,connectWithNoPrimary,authSource,w,wtimeout,j,writeConcern,forceServerObjectId,serializeFunctions,ignoreUndefined,raw,bufferMaxEntries,readPreference,pkFactory,promiseLibrary,readConcern,maxStalenessSeconds,loggerLevel,logger,promoteValues,promoteBuffers,promoteLongs,domainsEnabled,checkServerIdentity,validateOptions,appname,auth,user,password,authMechanism,compression,fsync,readPreferenceTags,numberOfRetries,auto_reconnect,minSize,monitorCommands,retryWrites,retryReads,useNewUrlParser,useUnifiedTopology,serverSelectionTimeoutMS,useRecoveryToken,autoEncryption,driverInfo,tls,tlsInsecure,tlsinsecure,tlsAllowInvalidCertificates,tlsAllowInvalidHostnames,tlsCAFile,tlsCertificateFile,tlsCertificateKeyFile,tlsCertificateKeyFilePassword,minHeartbeatFrequencyMS,heartbeatFrequencyMS,directConnection,appName,maxPoolSize,minPoolSize,maxIdleTimeMS,waitQueueTimeoutMS]
the options [isConnected] is not supported
the options [startSession] is not supported
the options [withSession] is not supported
the options [watch] is not supported
the options [getLogger] is not supported
the options [setMaxListeners] is not supported
the options [getMaxListeners] is not supported
the options [emit] is not supported
the options [addListener] is not supported
the options [on] is not supported
the options [prependListener] is not supported
the options [once] is not supported
the options [prependOnceListener] is not supported
the options [removeListener] is not supported
the options [off] is not supported
the options [removeAllListeners] is not supported
the options [listeners] is not supported
the options [rawListeners] is not supported
the options [listenerCount] is not supported
the options [eventNames] is not supported
(node:9864) Warning: Accessing non-existent property ‘MongoError’ of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
Server is listining on port 9000
(node:9864) UnhandledPromiseRejectionWarning: MongoServerSelectionError: connection to 50.19.70.171:27017 closed
at Timeout._onTimeout (C:\Users#geeky-laster\OneDrive\Desktop\Projects\CIT-CLUB-ONBOARDING\node_modules\mongodb\lib\core\sdam\topology.js:438:30)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:9864) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see Command-line API | Node.js v19.7.0 Documentation). (rejection id: 1)
(node:9864) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

So did you solve it Because I am getting the same error…??? :smiling_face_with_tear: