-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.0
-
Component/s: None
-
None
-
Empty show more show less
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)