You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using process.setUncaughtExceptionCaptureCallback with tsx throws the following error:
Error [ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE]: The `domain` module is in use, which is mutually exclusive with calling process.setUncaughtExceptionCaptureCallback()
at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
at new NodeError (node:internal/errors:399:5)
at process.setUncaughtExceptionCaptureCallback (node:domain:134:15)
at <anonymous> (min.ts:1:9)
at Object.<anonymous> (c:\workspace\dbinstall\min.ts:1:58)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (C:\workspace\dbinstall\node_modules\tsx\node_modules\@esbuild-kit\cjs-loader\dist\index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
----------------------------------------
Error: require(`domain`) at this point
at node:domain:130:28
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:334:7)
at requireBuiltin (node:internal/bootstrap/loaders:365:14)
at node:repl:136:16
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:334:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:270:10)
at loadBuiltinModule (node:internal/modules/cjs/helpers:56:9)
at ESMLoader.builtinStrategy (node:internal/modules/esm/translators:257:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14) {
code: 'ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE'
}
Bug description
Using
process.setUncaughtExceptionCaptureCallback
withtsx
throws the following error:Reproduction
min.ts:
Environment
Can you work on a fix?
The text was updated successfully, but these errors were encountered: