TypeError: value.value is not a function happen on Nodejs Mongodb

NPM package from mongodb - npm (npmjs.com)

There is an unhandled reject for typeError

TypeError: value.value is not a function
   at serializeBinary (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:567:20)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:979:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:947:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:729:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:947:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:947:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:947:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:947:17)
   at serializeObject (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:347:18)
   at serializeInto (PROJECT_PATH/node_modules/mongodb/node_modules/bson/lib/bson/parser/serializer.js:947:17)

Please kindly have a look

Hi @H_W welcome to the community!

Could you post some details into what command you ran that results in this error?

Best regards
Kevin