undici icon indicating copy to clipboard operation
undici copied to clipboard

`Uncaught TypeError: SharedArrayBuffer is not a constructor`

Open ronag opened this issue 4 months ago • 2 comments

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)

ronag avatar Oct 18 '24 10:10 ronag