# Uncaught ReferenceError: SharedArrayBuffer is not defined

**URL:** <https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849>\
**Category:** Video SDK\
**Created:** [June 25, 2023, 5:42pm UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849 "2023-06-25T17:42:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakov.yarmo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yakov.yarmo/32/49722_2.png) [@yakov.yarmo](https://devforum.zoom.us/u/yakov.yarmo)\
**Post date:** [June 25, 2023, 5:42pm UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849/1 "2023-06-25T17:42:59Z")

</div>

When I’m using the video sdk sample and video-non-sab is active and i’m trying to share,  
I get the following exception:

Uncaught ReferenceError: SharedArrayBuffer is not defined

how can I fix it?

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [June 26, 2023, 3:57pm UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849/2 "2023-06-26T15:57:53Z")

</div>

HI @yakov.yarmo ,

Can you attach and send a screenshot of the error in your console, please?

Best,  
Rehema

---

<div class="post-metadata">

**Author:** ![yakov.yarmo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yakov.yarmo/32/49722_2.png) [@yakov.yarmo](https://devforum.zoom.us/u/yakov.yarmo)\
**Post date:** [June 27, 2023, 7:20am UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849/3 "2023-06-27T07:20:25Z")

</div>

![Screenshot 2023-06-27 at 10.17.44](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/e/bef46e30212a0a435d6c2814bc46338afb8289de.png)

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [June 27, 2023, 1:15pm UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849/4 "2023-06-27T13:15:53Z")

</div>

Hi @yakov.yarmo ,

Thank you for the attachment. What browser/version of the browser(s) are you seeing this issue in, and is it happening in multiple browsers? Additionally, what is triggering this error? Are you attempting to enable gallery view, or show multiple videos, when it occurs?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![yakov.yarmo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yakov.yarmo/32/49722_2.png) [@yakov.yarmo](https://devforum.zoom.us/u/yakov.yarmo)\
**Post date:** [June 28, 2023, 7:24am UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849/5 "2023-06-28T07:24:10Z")

</div>

> [@rehema.zoom](#):
>
> error

I used the react demo code from:

> **[GitHub - zoom/videosdk-web-sample: Zoom Video SDK web sample](https://github.com/zoom/videosdk-web-sample)**
>
> Zoom Video SDK web sample. Contribute to zoom/videosdk-web-sample development by creating an account on GitHub.

And in config-overrides I disabled the config.headers to simulate a browser that doesn’t support SharedArrayBuffer.

I’m using chrome Version 114.0.5735.133 (Official Build) (arm64)

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [June 30, 2023, 2:49pm UTC](https://devforum.zoom.us/t/uncaught-referenceerror-sharedarraybuffer-is-not-defined/90849/6 "2023-06-30T14:49:43Z")

</div>

Hi @yakov.yarmo ,

I disabled the headers as well and ran the code, but was not able to reproduce your error. If you haven’t already done so, can you go into App.tsx and comment out the current ‘component’ line (~259) and add in ‘component={VideoNONSAB}’ underneath the line that reads 'path=“/video” '. This is to ensure the app is rendering the correct video component and seeing if the error still occurs.

Thanks,  
Rehema
