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
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.
Bug report
Describe the bug
Running
tsc
fromtypescript@4.9.5
with defaultskipLibCheck: false
on a project importing@accounts/mongo@0.34.0
andmongodb@5.1.0
generates the following error: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.