# Error "Cannot read property 'ivState' of undefined"

**URL:** <https://devforum.zoom.us/t/error-cannot-read-property-ivstate-of-undefined/56042>\
**Category:** Web\
**Created:** [August 19, 2021, 6:55am UTC](https://devforum.zoom.us/t/error-cannot-read-property-ivstate-of-undefined/56042 "2021-08-19T06:55:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![live11](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@live11](https://devforum.zoom.us/u/live11)\
**Post date:** [August 19, 2021, 6:55am UTC](https://devforum.zoom.us/t/error-cannot-read-property-ivstate-of-undefined/56042/1 "2021-08-19T06:55:29Z")

</div>

Hi,  
getting this error with a vanilla JS code.  
adding it for referance, can’t figure out what i’m doing wrong 🙂

 Title 

```
<script src="https://source.zoom.us/1.9.5/lib/vendor/react.min.js"></script>
<script src="https://source.zoom.us/1.9.5/lib/vendor/react-dom.min.js"></script>
<script src="https://source.zoom.us/1.9.5/lib/vendor/redux.min.js"></script>
<script src="https://source.zoom.us/1.9.5/lib/vendor/redux-thunk.min.js"></script>
<script src="https://source.zoom.us/1.9.5/lib/vendor/lodash.min.js"></script>

<script src="https://source.zoom.us/zoom-meeting-1.9.5.min.js"></script>
<script>
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.9.5/lib', '/av');
        ZoomMtg.preLoadWasm();
        ZoomMtg.prepareJssdk();
        const zoomMeeting = document.getElementById("zmmtg-root")

        ZoomMtg.join({
            signature: '{{ python_3_generated_sig }}',
            apiKey: '{{ my_api_key }},
            meetingNumber: '{{ meeting_num }}',
            userName: 'live11',
            passWord: '123456,
            error(res) {
                console.log(res)
            }
        })
</script>

<div id="zmmtg-root"></div>
<div id="aria-notify-area"></div>

```

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [August 23, 2021, 11:14pm UTC](https://devforum.zoom.us/t/error-cannot-read-property-ivstate-of-undefined/56042/2 "2021-08-23T23:14:32Z")

</div>

Hey @live11,

Thank you for reaching out to the Zoom Developer Forum. Are you able to share a screenshot of the browser console?

I would try removing the zmmtg-root div as that should be inserted by the SDK. If that doesn’t help, try using the [Sample Web App](https://github.com/zoom/sample-app-web) as a reference.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 23, 2021, 9:15am UTC](https://devforum.zoom.us/t/error-cannot-read-property-ivstate-of-undefined/56042/3 "2021-09-23T09:15:05Z")

</div>

Closed on September 23, 2021, 9:15am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
