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

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

Browser Console Error

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:

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

@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.

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.

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

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