undici
undici copied to clipboard
`Uncaught TypeError: SharedArrayBuffer is not a constructor`
This is more of a runtime issue but I'm still confused why/how undici requires SharedArrayBuffer
.
The problem occurs with:
require('undici')
Uncaught TypeError: SharedArrayBuffer is not a constructor
at node:internal/worker:94:32
at NativeModule.compileForInternalLoader (node:internal/bootstrap/loaders:312:7)
at nativeModuleRequire (node:internal/bootstrap/loaders:341:14)
at node:worker_threads:11:5
at NativeModule.compileForInternalLoader (node:internal/bootstrap/loaders:312:7)
at NativeModule.compileForPublicLoader (node:internal/bootstrap/loaders:252:10)
at loadNativeModule (node:internal/modules/cjs/helpers:44:9)
at Function.Module._load (node:internal/modules/cjs/loader:823:15)
at Module.require (node:internal/modules/cjs/loader:1023:19)
at require (node:internal/modules/cjs/helpers:97:18)