Skip to content

error TS2724: '"bson"' has no exported member named 'ObjectID'. Did you mean 'ObjectId'? #1248

@KeithGillette

Description

@KeithGillette

Bug report

Describe the bug

Running tsc from [email protected] with default skipLibCheck: false on a project importing @accounts/[email protected] and [email protected] generates the following error:

error TS2724: '"bson"' has no exported member named 'ObjectID'. Did you mean 'ObjectId'?

To Reproduce

See bug description.

Expected behavior

The project should transpile without error with TypeScript's default skipLibCheck: false setting.

Screenshots

N/A

System information

  • accounts-js: 0.33.2
  • mongodb: 5.1.0
  • typescript: 4.9.5

Additional context

The version of mongodb in @accounts/mongo dependencies is 2 major versions behind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions