# ReferenceError: \_ is not defined

**URL:** <https://devforum.zoom.us/t/referenceerror-is-not-defined/103990>\
**Category:** Web\
**Created:** [February 16, 2024, 10:07am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990 "2024-02-16T10:07:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwerty1234](https://avatars.discourse-cdn.com/v4/letter/q/3be4f8/32.png) [@qwerty1234](https://devforum.zoom.us/u/qwerty1234)\
**Post date:** [February 16, 2024, 10:07am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/1 "2024-02-16T10:07:11Z")

</div>

I am integrating ZoomSdk client view, but i am facing errors in the import and itseld

```auto
import { ZoomMtg } from "@zoom/meetingsdk";

ZoomMtg.preLoadWasm(); 
ZoomMtg.prepareWebSDK();

```

 ![Screenshot 2024-02-16 at 3.24.48 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/8/08694e0316643ae0f9bb6250e985b0731848f51a.png)  
i dont understand what this error is, this is caused becuause of these ZoomMtg.preLoadWasm();  
ZoomMtg.prepareWebSDK();

i am using  
react + typescript app with vite

```auto
 "react": "^18.2.0",
 "@zoom/meetingsdk": "^3.1.6",

```

---

<div class="post-metadata">

**Author:** ![abhay.scaleteam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhay.scaleteam/32/56810_2.png) [@abhay.scaleteam](https://devforum.zoom.us/u/abhay.scaleteam)\
**Post date:** [February 21, 2024, 4:30am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/2 "2024-02-21T04:30:00Z")

</div>

I am getting the same issue, if i import embedded package then it is working fine

Like " import ZoomMtgEmbedded from ‘@zoom/meetingsdk/embedded’; " is not causing any error but  
import { ZoomMtg } from ‘@zoom/meetingsdk’;  
this is getting me this \_ is not defined error

Does any one have solution ?

---

<div class="post-metadata">

**Author:** ![mijodu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mijodu](https://devforum.zoom.us/u/mijodu)\
**Post date:** [February 22, 2024, 1:22am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/3 "2024-02-22T01:22:05Z")

</div>

I’m having the same issue since rebuilding our existing Zoom integration. I can’t see where I’m missing what’s clearly a crucial bit of config at the moment but if I find it, I’ll let you know

---

<div class="post-metadata">

**Author:** ![abhay.scaleteam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhay.scaleteam/32/56810_2.png) [@abhay.scaleteam](https://devforum.zoom.us/u/abhay.scaleteam)\
**Post date:** [February 22, 2024, 9:36am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/4 "2024-02-22T09:36:19Z")

</div>

Hey Mike, Thanks,  
Actually I have solved this \_ issue , it was because of the zoom lodash library was not loaded so i added `<script src="https://source.zoom.us/3.1.6/lib/vendor/lodash.min.js"></script>` in my index.html file in header tag in my ReactJS app and error is solved  
Hope this helps to you

---

<div class="post-metadata">

**Author:** ![mijodu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mijodu](https://devforum.zoom.us/u/mijodu)\
**Post date:** [February 28, 2024, 9:46am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/5 "2024-02-28T09:46:15Z")

</div>

Thanks for sharing @abhay.scaleteam! Unfortunately I haven’t figured out my issue yet but I’ve parked it for now. I have an Angular project within an Nx monorepo, although never had an issue like this with any other package.

---

<div class="post-metadata">

**Author:** ![felipe.armoni](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@felipe.armoni](https://devforum.zoom.us/u/felipe.armoni)\
**Post date:** [March 9, 2024, 1:54pm UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/6 "2024-03-09T13:54:35Z")

</div>

Hi, I am having the same error.

I would prefer not to import lodash globally from the Zoom CDN. Is there another option?

---

<div class="post-metadata">

**Author:** ![yalcin.ozer](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yalcin.ozer](https://devforum.zoom.us/u/yalcin.ozer)\
**Post date:** [March 18, 2024, 9:14am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/7 "2024-03-18T09:14:00Z")

</div>

Same issue here also. I am using vite btw. Component view runs ok but it missing whiteboard some reason. I am tired of those issues

---

<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 18, 2024, 10:47pm UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/9 "2024-04-18T22:47:00Z")

</div>

I am also having the same issue.

---

<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 19, 2024, 8:47am UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/10 "2024-05-19T08:47:15Z")

</div>

Closed on May 19, 2024, 8:47am UTC

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

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [August 12, 2024, 2:00pm UTC](https://devforum.zoom.us/t/referenceerror-is-not-defined/103990/11 "2024-08-12T14:00:47Z")

</div>

If you’re facing this issue in a project that’s importing the SDK from npm, it’s because your project hasn’t defined loadash (a dependency for the Zoom SDK). You can import loadash by adding the `<script src="https://source.zoom.us/3.1.6/lib/vendor/lodash.min.js"></script>` to the `<head>` of your html file & solve the error.
