Type 'import(".../node_modules/mongoose/node_modules/mongodb/mongodb").MongoClient' is not assignable to type 'import(".../node_modules/mongodb/mongodb").MongoClient'. #14653
Labels
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Prerequisites
Mongoose version
8.4.1
Node.js version
20.14.0
MongoDB server version
6.7.0
Typescript version (if applicable)
5.4.5
Description
When I create
MongoStore
usingconnect-mongo
npm package, and provideMongoClient
withmongoose.client.getClient()
, vscode shows me error from the issue's title.I'm not sure if this is a mongoose bug or not, but it started happening after I updated mongoose to the last version.
connect-mongo version: 5.1.0
Steps to Reproduce
This will show an error in vscode:
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: