# Import { ZoomMtg } from ‘@zoomus/websdk’; causing React app to crash

**URL:** <https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-crash/58543>\
**Category:** Web\
**Created:** [October 7, 2021, 5:04pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-crash/58543 "2021-10-07T17:04:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lara.duarte](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lara.duarte/32/31578_2.png) [@lara.duarte](https://devforum.zoom.us/u/lara.duarte)\
**Post date:** [October 7, 2021, 5:04pm UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-crash/58543/1 "2021-10-07T17:04:12Z")

</div>

As soon as I import the module the app crashes.

_**TypeError: Cannot read properties of undefined (reading ‘length’)**_

_ **ApplicationService.Array.minus** _  
_ **node\_modules/@zoomus/websdk/dist/zoomus-websdk.umd.min.js:30806** _

```auto
 30803 | 30804 | return e; 30805 | }, Array.prototype.minus = function (e) {> 30806 | for (var n = new Array(), t = {}, o = 0; o < e.length; o++) t[e[o]] = 1; | ^ 30807 | 30808 | for (var r = 0; r < this.length; r++) t[this[r]] || (t[this[r]] = 1, n.push(this[r])); 30809 | 

```

SDK version 1.9.9

“I’m also getting this error: Sorry, you can’t embed media items in a post.”

Browser: Chrome

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 8, 2021, 12:54am UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-crash/58543/2 "2021-10-08T00:54:50Z")

</div>

Greetings, @lara.duarte,

Thank you for posting in the Developer Forum! As a start, can you share a screenshot of your code when you encounter that TypeError ?

This will help with troubleshooting.

Best,  
Donte

---

<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:** [November 7, 2021, 10:55am UTC](https://devforum.zoom.us/t/import-zoommtg-from-zoomus-websdk-causing-react-app-to-crash/58543/3 "2021-11-07T10:55:16Z")

</div>

Closed on November 7, 2021, 10:55am UTC

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