Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KeithGillette opened this issue Apr 4, 2023 · 1 comment · Fixed by #1258
Milestone

Comments

@KeithGillette
Copy link

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.

@darkbasic
Copy link
Member

Please try 1.0, this should be fixed.

@darkbasic darkbasic added the 1.0 label Nov 22, 2023
@darkbasic darkbasic added this to the 1.0 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants