accounts-js / accounts

Fullstack authentication and accounts-management for Javascript.
https://www.accountsjs.com/
MIT License
1.5k stars 141 forks source link

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

Closed KeithGillette closed 10 months ago

KeithGillette commented 1 year ago

Bug report

Describe the bug

Running tsc from typescript@4.9.5 with default skipLibCheck: false on a project importing @accounts/mongo@0.34.0 and mongodb@5.1.0 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

Additional context

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

darkbasic commented 1 year ago

Please try 1.0, this should be fixed.