Skip to content

Fix error 'SharedArrayBuffer' is missing... in NativeChannel.js using the latest typescript version #2665

Closed
@agadzhalov

Description

@agadzhalov
  1. Due to typescript latest update to v5.7.2 when you try to build the JS SDK project executing task build you will receive the following error:
Error: src/channel/NativeChannel.js(123,21): error TS2345: Argument of type 'ArrayBufferLike' is not assignable to parameter of type 'ArrayBuffer'.
  Type 'SharedArrayBuffer' is missing the following properties from type 'ArrayBuffer': resizable, resize, detached, transfer, transferToFixedLength
task: Failed to run task "build": exit status 2
Error: Process completed with exit code 201.
  1. This error also causes the CI to fail.
  2. Similar issues were opened in the typescript repo Type 'ArrayBufferLike' is not assignable to type 'BlobPart'

Fix
Currently the fix in the CI is to hardcode the typescript version to an older one, but this is not a good approach. We need to focus on fixing the issue in NativeChannel.js with the latest ts version

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions