esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - nucypher-ts due to buffer size larger than 4KB

Open theref opened this issue 2 years ago • 1 comments

Failing module

  • GitHub: https://github.com/nucypher/nucypher-ts
  • npm: https://www.npmjs.com/package/@nucypher/nucypher-ts

When importing I get:

ExternalError: RangeError: WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. Use WebAssembly.compile, or compile on a worker thread.

Firefox does not have the 4KB limit so import works fine there.

theref avatar May 08 '23 12:05 theref

Why does the error say both WebAssembly.compile and WebAssembly.Compile ?

renhiyama avatar May 08 '23 17:05 renhiyama