Skip to content

v5.2.9 breaks on Node 4.1 and 5.9 (+more) Buffore.alloc #6884

@mblarsen

Description

@mblarsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    underlying library issueThis issue is a bug with an underlying library, like the MongoDB driver or mongodb-core

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions