Skip to content

Mongoose 6.1.7 not typescript compliable. Need to update to mongodb v4.3.0 #11248

@ronniegeraghty

Description

@ronniegeraghty

Mongoose v6.1.7
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Cannot complete typescript compile. Compile errors between Mongoose and mongodb package.
If the current behavior is a bug, please provide the steps to reproduce.

Will provide if needed but I have seen a few stack overflow posts about it. Doing a tsc on any typescript project using mongoose should reproduce.

https://github.com/ronniegeraghty/Discord_Bot/blob/0169ea5bbf36905dcb14dd4c508514246d3deea6/tsconfig.json
What is the expected behavior?
That the project be able to compile with typescript.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node v16.13.1 - Mongoose v6.1.7 - MongoDB v5.0.2

I went into the mongoose package in my node_modules dir and upgraded the version of the mongodb package that mongoose uses to mongodb v4.3.0 and it seemed to resolve the issue. Would just like this to be added so I don't have to do into mongoose and update its mongodb package each time I do a fresh npm install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    can't reproduceMongoose devs have been unable to reproduce this issue. Close after 14 days of inactivity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions