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

Sort imports and fix circular dependency

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.0, 3.6.9
    • Component/s: None
    • Not Needed

      Importing the mongo client like so, results in a TypeError.

      const {MongoClient} = require('./lib/mongo_client')
      
      Uncaught TypeError: Class extends value undefined is not a constructor or null
          at Object.<anonymous> (/Users/neal/code/drivers/js/driver-v4/lib/operations/run_command.js:7:45)
          at Module._compile (internal/modules/cjs/loader.js:1068:30)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: