-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Since 5.2.9 the mongo library (in current range) causes:
Uncaught TypeError: Buffer.alloc is not a function
If the current behavior is a bug, please provide the steps to reproduce.
Here is a test case that shows the error:
for 5.9 https://travis-ci.org/mblarsen/mongoose-hidden/jobs/417260776#L628
for 4.1 https://travis-ci.org/mblarsen/mongoose-hidden/jobs/417260777#L538
Note that just above you'll see:
current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
I'm not sure that is related.
Please mention your node.js, mongoose and MongoDB version.
"mongoose": "^5.0.0",
No MongoDB depency since my code is a Mongoose library. The error occurs on Travis.
services: mongodb