# Issues with #zmmtg-root div element

**URL:** <https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246>\
**Category:** Web\
**Created:** [February 12, 2021, 8:43pm UTC](https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246 "2021-02-12T20:43:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![acceluser8866](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acceluser8866/32/6738_2.png) [@acceluser8866](https://devforum.zoom.us/u/acceluser8866)\
**Post date:** [February 12, 2021, 8:43pm UTC](https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246/1 "2021-02-12T20:43:07Z")

</div>

**Description**  
Error ‘react-modal: No elements were found for selector #zmmtg-root.’ is logged multiple times in sentry. We don’t have any logic which can cause above error so I feel it’s an issue with the web SDK. Can you please let me know what could cause the above error and how can we fix it?

**Error**  
react-modal: No elements were found for selector #zmmtg-root.

**Which version?**  
1.8.5

**To Reproduce**  
I do not have any specific steps to reproduce this error but it keeps getting logged in sentry. I also feel it’s an issue only after upgrading to 1.8.5. Earlier we were using 1.7.10 and haven’t come across this error.

**Additional context**  
we are using something similar to this [Please init meeting first! Error when adding div id="zmmtg-root" inside a React component - #8 by mehdi.rouis](https://devforum.zoom.us/t/please-init-meeting-first-error-when-adding-div-id-zmmtg-root-inside-a-react-component/29598/8) to load meeting UI in custom div and we hide #zmmtg-root div added in the body.

---

<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:** [February 12, 2021, 11:03pm UTC](https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246/2 "2021-02-12T23:03:20Z")

</div>

Hey @acceluser8866,

Thank you for reaching out to the Zoom Developer Forum. Please try upgrading to the latest version of the Web SDK (1.9.0) and let me know if that resolves your issues.

If that’s not helpful, are you able to share a public git repo of the code that exhibits this issue?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![acceluser8866](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acceluser8866/32/6738_2.png) [@acceluser8866](https://devforum.zoom.us/u/acceluser8866)\
**Post date:** [February 15, 2021, 5:40pm UTC](https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246/3 "2021-02-15T17:40:00Z")

</div>

@MaxM Thanks for your reply!  
I am not sure if upgrading the SDK will help but if you are sure that it will resolve then we can try to upgrade. Zoom has a lot of issues with CSS which we have managed on our end so upgrading is not a quick task. I am using the same code which is listed in the sample app the only difference is in which element I rendered which I also mentioned above so I will like to know if you internally use that selector because else there is no way to identify on our end what is the issue.

---

<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:** [February 16, 2021, 11:19pm UTC](https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246/4 "2021-02-16T23:19:05Z")

</div>

Hey @acceluser8866,

Thank you for the update. I’m not positive this will resolve the issue but if we determine this is a problem with the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web#zoom-web-sdk) the first step is to make sure that we are using the latest version.

When attempting to reproduce the issue on my end, using the [Sample Web App](https://github.com/zoom/sample-app-web) I’m not seeing the same behavior. I would first test with that and then see if you can identify any issues with your implementation if you don’t see the same issue.

> Zoom has a lot of issues with CSS which we have managed on our end so upgrading is not a quick task.

We are working to provide a more customizable version of the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web#zoom-web-sdk) soon. For now, custom CSS is the best method to adjust the display of the meeting but as you’ve seen it can introduce new issues and cause more work when attempting to upgrade to a newer version.

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:** [March 19, 2021, 9:19am UTC](https://devforum.zoom.us/t/issues-with-zmmtg-root-div-element/43246/5 "2021-03-19T09:19:42Z")

</div>

Closed on March 19, 2021, 9:19am UTC

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