# Missing lodash dependency in zoom package 3.5.2 when importing ZoomMtg for client view causes crash

**URL:** <https://devforum.zoom.us/t/missing-lodash-dependency-in-zoom-package-3-5-2-when-importing-zoommtg-for-client-view-causes-crash/108264>\
**Category:** Web\
**Created:** [April 19, 2024, 3:45pm UTC](https://devforum.zoom.us/t/missing-lodash-dependency-in-zoom-package-3-5-2-when-importing-zoommtg-for-client-view-causes-crash/108264 "2024-04-19T15:45:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcobb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tcobb/32/62467_2.png) [@tcobb](https://devforum.zoom.us/u/tcobb)\
**Post date:** [April 19, 2024, 3:45pm UTC](https://devforum.zoom.us/t/missing-lodash-dependency-in-zoom-package-3-5-2-when-importing-zoommtg-for-client-view-causes-crash/108264/1 "2024-04-19T15:45:11Z")

</div>

**Description**  
I’m using the Web SDK 3.5.2 client view in a React 18 application

Importing ZoomMtg from @zoom/meetingsdk and then calling

```auto
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();
ZoomMtg.i18n.load("en-US");

```

results in an uncaught error that crashes the system. The console log shows:

```auto
08:59:44.739 zoomus-websdk.umd.min.js:2 Uncaught ReferenceError: _ is not defined
    at Object.<anonymous> (zoomus-websdk.umd.min.js:2:288075)
    at Object.t4 (zoomus-websdk.umd.min.js:2:286527)
    at a3 (zoomus-websdk.umd.min.js:2:830580)
    at 88739 (zoomus-websdk.umd.min.js:2:278236)
    at a3 (zoomus-websdk.umd.min.js:2:830580)
    at 38274 (zoomus-websdk.umd.min.js:2:333482)
    at a3 (zoomus-websdk.umd.min.js:2:830580)
    at 63200 (zoomus-websdk.umd.min.js:2:332993)
    at a3 (zoomus-websdk.umd.min.js:2:830580)
    at zoomus-websdk.umd.min.js:2:835870
(anonymous) @ zoomus-websdk.umd.min.js:2

```

Upon further investigation, it is clear that the error is caused by the the zoomus-websdk.umd.min.js file referring to \_.debounce(), a lodash function, but lodash is not included as a dependency in the @zoom package.

I was able to temporarily work around the issue by including lodash via a script file element in index.html, but that approach won’t work for me when my app is released to production. I used:  
` <script src="https://source.zoom.us/3.5.2/lib/vendor/lodash.min.js"></script>`

This can only be resolved appropriately with an updated sdk package release.

---

<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:** [May 20, 2024, 1:45am UTC](https://devforum.zoom.us/t/missing-lodash-dependency-in-zoom-package-3-5-2-when-importing-zoommtg-for-client-view-causes-crash/108264/2 "2024-05-20T01:45:12Z")

</div>

Closed on May 20, 2024, 1:45am UTC

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