# Issues with ZoomSDK Component View and 720p in React + TypeScript Vite App

**URL:** <https://devforum.zoom.us/t/issues-with-zoomsdk-component-view-and-720p-in-react-typescript-vite-app/104113>\
**Category:** Meeting SDK\
**Created:** [February 19, 2024, 6:25am UTC](https://devforum.zoom.us/t/issues-with-zoomsdk-component-view-and-720p-in-react-typescript-vite-app/104113 "2024-02-19T06:25:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thetapacademy](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@thetapacademy](https://devforum.zoom.us/u/thetapacademy)\
**Post date:** [February 19, 2024, 6:25am UTC](https://devforum.zoom.us/t/issues-with-zoomsdk-component-view-and-720p-in-react-typescript-vite-app/104113/1 "2024-02-19T06:25:11Z")

</div>

In my React + TypeScript application, created with Vite, and utilizing ZoomSDK component view with the following dependencies:

```auto
- "react": "^18.2.0"
- "@zoom/meetingsdk": "^3.1.6"

```

I’ve encountered the following issues:

1. The gallery view isn’t enabled, even after following the steps outlined in the article on SharedArrayBuffer.

> **[Meeting SDK - web | 720p video](https://developers.zoom.us/docs/meeting-sdk/web/720p/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

To address the gallery view issue, I created a service worker using the guidelines provided

[https://github.com/gzuidhof/coi-serviceworker](https://github.com/gzuidhof/coi-serviceworker) to enable the sharedArrayBuffer, which successfully enabled the gallery view.

However, upon enabling sharedArrayBuffer, the 720p is not applied to the speaker view (speaker video resolution is 180p). Conversely, when I disable the sharedArrayBuffer, the gallery view is disabled, but the 720p is applied for the speaker view.

(The support team has enabled 720p on my account.)

1. Additionally, when I switch to the client view, it’s not working as expected I am getting this error - (Reference Error: \_ is not defined).

---

<div class="post-metadata">

**Author:** ![yalcin.ozer](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yalcin.ozer](https://devforum.zoom.us/u/yalcin.ozer)\
**Post date:** [March 18, 2024, 1:21pm UTC](https://devforum.zoom.us/t/issues-with-zoomsdk-component-view-and-720p-in-react-typescript-vite-app/104113/2 "2024-03-18T13:21:21Z")

</div>

Same exact problem. I have a React 18.2.0 that uses vite.  
Calling this lines cause app crash, and logs “\_ is not defined”

```auto
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();

```

It would be great to have some support, thanks.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 19, 2024, 2:29am UTC](https://devforum.zoom.us/t/issues-with-zoomsdk-component-view-and-720p-in-react-typescript-vite-app/104113/3 "2024-03-19T02:29:53Z")

</div>

@yalcin.ozer @thetapacademy

Version 3.5.1 is the version which supports React 18. Any version below this, would need to use React 16.
