# JsMediaSDK\_Instance is not defined ReferenceError: JsMediaSDK\_Instance is not defined

**URL:** <https://devforum.zoom.us/t/jsmediasdk-instance-is-not-defined-referenceerror-jsmediasdk-instance-is-not-defined/91383>\
**Category:** Video SDK\
**Created:** [July 6, 2023, 2:03am UTC](https://devforum.zoom.us/t/jsmediasdk-instance-is-not-defined-referenceerror-jsmediasdk-instance-is-not-defined/91383 "2023-07-06T02:03:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 6, 2023, 5:05am UTC](https://devforum.zoom.us/t/jsmediasdk-instance-is-not-defined-referenceerror-jsmediasdk-instance-is-not-defined/91383/4 "2023-07-06T05:05:03Z")

</div>

@EH2077 Its hard to troubleshoot as this is your custom code, and we do not extensively debug code over the developer forum.

From some of the past forum post, your issue might be caused by a race condition. In other words, there is a possibility that the web application is referencing to our SDK object before it has completely loaded from the web.

Here’s one of the thread which you might find useful

> [@JSMediaSdk\_Instance not defined](https://devforum.zoom.us/t/jsmediasdk-instance-not-defined/8177/3):
>
> hello again, looks like this can be circumvented by setting ZoomMtg.setZoomJSLib(‘http://[URL]/node\_modules/@zoomus/websdk/dist/lib’, ‘/av’); … and copying ‘node\_modules/@zoomus/websdk/dist/lib’ to the corresponding webroot. this way, the AV libs dont need to be fetched from the default URL ([source.zoom.us](http://source.zoom.us) i guess), and JsMediaSDK\_Instance is known instantly… @zoom: is it possible that this JsMediaSDK\_Instance - error can be triggered by calling ZoomMtg.join() BEFORE ZoomMtg.prepareJssdk(); …

do tag me in your response to get my attention to reply

---

_[View the full topic](https://devforum.zoom.us/t/jsmediasdk-instance-is-not-defined-referenceerror-jsmediasdk-instance-is-not-defined/91383)._
