# Compiling ZoomSDK with Parcel causes a \_.debounce is not a function error

**URL:** <https://devforum.zoom.us/t/compiling-zoomsdk-with-parcel-causes-a-debounce-is-not-a-function-error/73657>\
**Category:** Web\
**Created:** [August 4, 2022, 3:53pm UTC](https://devforum.zoom.us/t/compiling-zoomsdk-with-parcel-causes-a-debounce-is-not-a-function-error/73657 "2022-08-04T15:53:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miked](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/miked/32/7703_2.png) [@miked](https://devforum.zoom.us/u/miked)\
**Post date:** [August 4, 2022, 3:53pm UTC](https://devforum.zoom.us/t/compiling-zoomsdk-with-parcel-causes-a-debounce-is-not-a-function-error/73657/1 "2022-08-04T15:53:47Z")

</div>

**Description**  
When packaging the Zoom WebSDK (2.6.0) with Parcel ([https://parceljs.org/](https://parceljs.org/)) the following error is reported in the console and Zoom does not load.

**Browser Console Error**

```auto
zoomus-websdk.umd.min.js:2 Uncaught TypeError: _.debounce is not a function
    at Module.<anonymous> (zoomus-websdk.umd.min.js:2:640169)
    at t (zoomus-websdk.umd.min.js:2:799)
    at Object.<anonymous> (zoomus-websdk.umd.min.js:2:583362)
    at t (zoomus-websdk.umd.min.js:2:799)
    at Object.<anonymous> (zoomus-websdk.umd.min.js:2:3460042)
    at t (zoomus-websdk.umd.min.js:2:799)
    at Object.<anonymous> (zoomus-websdk.umd.min.js:2:2685171)
    at t (zoomus-websdk.umd.min.js:2:799)
    at Object.<anonymous> (zoomus-websdk.umd.min.js:2:406708)
    at t (zoomus-websdk.umd.min.js:2:799)

```

**Which Web Meeting SDK version?**  
`2.6.0`

**Meeting SDK Code Snippets**  
`import { ZoomMtg } from '@zoomus/websdk'`

**To Reproduce(If applicable)**

I’ve created a sample repo available here:

> **[GitHub - ant-fx/zoom-with-parcel](https://github.com/ant-fx/zoom-with-parcel)**
>
> Contribute to ant-fx/zoom-with-parcel development by creating an account on GitHub.

```auto
1. Install node 16.x
2. Clone repo
3. npm install
4. npx parcel serve index.html
5. Load the URL shown in the console (i.e. http://localhost:55303)
6. Open dev tools, you should see the error

```

**Device (please complete the following information):**

- Device: Macbook Pro 16 (M1)
- OS: macOS 12.2.1 (21D62)
- Browser: Chrome
- Browser Version 103.0.5060.114
- Node: 16.13.0

---

<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:** [August 5, 2022, 1:04am UTC](https://devforum.zoom.us/t/compiling-zoomsdk-with-parcel-causes-a-debounce-is-not-a-function-error/73657/2 "2022-08-05T01:04:46Z")

</div>

@miked,

Thank you for posting in the Developer Forum. Thank you for the question, not familiar with Parcel but I am happy to check internally to see if there are any best practices we can offer. In checking the sample repo, I am not seeing how you are generating a meeting SDK signature. Please let me know if I am missing something.

---

<div class="post-metadata">

**Author:** ![miked](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/miked/32/7703_2.png) [@miked](https://devforum.zoom.us/u/miked)\
**Post date:** [August 5, 2022, 7:13am UTC](https://devforum.zoom.us/t/compiling-zoomsdk-with-parcel-causes-a-debounce-is-not-a-function-error/73657/4 "2022-08-05T07:13:09Z")

</div>

Hi Donte, thanks for taking a look.

Correct I am not generating a signature, it is not required to see the issue so I removed that code from the sample repo for simplicity. Simply including the ZoomMtg object and building causes the problem.

I’ve seen other users with the same issue posed here so I suspect it’s not just related to Parcel.

> [@Not able to unit test due to \_.debounce failure](https://devforum.zoom.us/t/not-able-to-unit-test-due-to-debounce-failure/71311):
>
> Description Not able to run Jest - unit test cases due to below error TypeError: \_.debounce is not a function Errors Test suite failed to run TypeError: \_.debounce is not a function \> 1 | import { ZoomMtg } from '@zoomus/websdk'; | ^ 2 | 3 | // loads language files, also passes any error messages to the ui at Module.call (node\_modules/@zoomus/websdk/dist/zoomus-websdk.umd.min.js:2:561997) at t (node\_modules/@zoomus/websdk/dist/zoomus-websdk.umd.min.js:2:799) at Object.call (…

> [@ZoomMtg not working](https://devforum.zoom.us/t/zoommtg-not-working/67672):
>
> Hello I am using the web meeting sdk in my electron app and successfully connect the meeting with ZoomMtgEmbedded but when I am trying to initialize the ZoomMtg, it is showing the error in my app. Here the error:- Uncaught TypeError: \_.debounce is not a function I am using the “@zoomus/websdk”: “^2.3.0” in my app Please help us. Thanks.

[https://devforum.zoom.us/t/getting-error-while-using-web-sdk/67101/2](https://devforum.zoom.us/t/getting-error-while-using-web-sdk/67101/2)

---

<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 4, 2022, 5:14pm UTC](https://devforum.zoom.us/t/compiling-zoomsdk-with-parcel-causes-a-debounce-is-not-a-function-error/73657/5 "2022-09-04T17:14:01Z")

</div>

Closed on September 4, 2022, 5:14pm UTC

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