Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4428

Investigate NODE-4427 - Type instantiation is excessively deep and possibly infinite after update to v4.8.0

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Unknown
    • Resolution: Gone away
    • None
    • None
    • None
    • Not Needed

    Description

      NODE-4427 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.

      Attachments

        Issue Links

          Activity

            People

              neal.beeken@mongodb.com Neal Beeken
              dbeng-pm-bot PM Bot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: