Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
agadzhalov opened this issue Nov 26, 2024 · 0 comments

Comments

@agadzhalov
Copy link
Contributor

agadzhalov commented Nov 26, 2024

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant