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

CommandOperation "Class extends value undefined is not a constructor or null"

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.0
    • Component/s: None
    • None

      Simply trying to load the module here:

      const { MongoClient } = require('./mongo_client');
      
      /Users/thomasreggi/Desktop/git/mongodb/node-mongodb-native/src/operations/run_command.ts:14
      > extends CommandOperation<T, TResult> {
                ^
      TypeError: Class extends value undefined is not a constructor or null
          at Object.<anonymous> (/Users/thomasreggi/Desktop/git/mongodb/node-mongodb-native/src/operations/run_command.ts:14:11)
          at Module._compile (internal/modules/cjs/loader.js:1158:30)
          at Module.m._compile (/Users/thomasreggi/.nvm/versions/node/v12.16.1/lib/node_modules/ts-node/src/index.ts:858:23)
          at Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
          at Object.require.extensions.<computed> [as .ts] (/Users/thomasreggi/.nvm/versions/node/v12.16.1/lib/node_modules/ts-node/src/index.ts:861:12)
          at Module.load (internal/modules/cjs/loader.js:1002:32)
          at Function.Module._load (internal/modules/cjs/loader.js:901:14)
          at Module.require (internal/modules/cjs/loader.js:1044:19)
          at require (internal/modules/cjs/helpers.js:77:18)
          at Object.<anonymous> (/Users/thomasreggi/Desktop/git/mongodb/node-mongodb-native/src/sessions.ts:23:1)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: