# Error ZoomMtg is not defined

**URL:** <https://devforum.zoom.us/t/error-zoommtg-is-not-defined/61145>\
**Category:** Web\
**Created:** [December 7, 2021, 6:55am UTC](https://devforum.zoom.us/t/error-zoommtg-is-not-defined/61145 "2021-12-07T06:55:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 10, 2021, 5:18pm UTC](https://devforum.zoom.us/t/error-zoommtg-is-not-defined/61145/4 "2021-12-10T17:18:26Z")

</div>

Hey @abhimanyu.sikarwar ,

`ZoomMtg` is undefined for you because you have commented out the script that imports it:

 ![Screen Shot 2021-12-10 at 10.16.19 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/b/8b5668024985d31a370b5e09f9d24e22e492724e.png)

The following script is for the [Client View](https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view) which is what I assume you are using:

```auto
<script src="https://source.zoom.us/zoom-meeting-2.0.1.min.js"></script>

```

This script is for the new [Component View](https://marketplace.zoom.us/docs/sdk/native-sdks/web/component-view):

```auto
<script src="https://source.zoom.us/2.0.1/zoom-meeting-embedded-2.0.1.min.js"></script>

```

Please see our documentation here: [https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#install-from-cdn](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#install-from-cdn)

You can see the sample app for the Client View using the CDN does not have this line commented out:

> <https://github.com/zoom/sample-app-web/blob/master/CDN/index.html#L147>

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/error-zoommtg-is-not-defined/61145)._
