Skip to content

Unsupported BSON version, bson types must be from bson 5.0 or later when used with mongoose 7.0.0 #349

Open
@Fasunle

Description

@Fasunle
  • work around for now is to downgrade mongoose version to 6.6.2
  • I tried to install latest bson package (5.0.1) as a peer dependency, but this does not fix the problem

Reproduce Bug

In order to reproduce this bug, use mongo-cursor-pagination (8.1.2 or 8.1.3) with mongoose (7.0.0).

The error occurs whenever next page query is added to paginate function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions