Details
-
Bug
-
Status: Closed
-
Unknown
-
Resolution: Gone away
-
4.8.0
-
None
-
Empty show more show less
-
Not Needed
Description
What problem are you facing?
Getting `Type instantiation is excessively deep and possibly infinite` errors whenever I pass MongoClient as a parameter in my code after updating from 4.7.0 to 4.8.0.Â
Example code:{{Â Â }}
await UseCase.setup({}{ Â Â Â {}
{{ dbClient: this.client,    }}
{{Â resultReporter: reporter, Â Â }}
}).execute(info);
Â
// ...Â
Â
export class UseCase {
 static setup(opts:{}{   {}
{{Â Â dbClient: MongoClient; Â Â }}
{{Â Â resultReporter: IResultReporter; Â }}
 }{}) {}{{{   }}
{{  return new UseCase(opts.dbClient,    opts.resultReporter);  }}}
 // ...
}
What driver and relevant dependency versions are you using?
4.8.0
Steps to reproduce?
Install mongodb @ 4.8.0
Use MongoClient.