# Error with ZoomWebSDK2.2.0, error with function

**URL:** <https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513>\
**Category:** Web\
**Created:** [March 9, 2022, 3:03pm UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513 "2022-03-09T15:03:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbhosale](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@vbhosale](https://devforum.zoom.us/u/vbhosale)\
**Post date:** [March 9, 2022, 3:03pm UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513/1 "2022-03-09T15:03:55Z")

</div>

**Description**  
Updated to SDKv2.2.0 and while running it is giving the error with function.  
ERROR in node\_modules/@zoomus/websdk/index.d.ts

**Browser Console Error**

**Which Web Meeting SDK version?**  
2.2.0

**Meeting SDK Code Snippets**  
Updated WebSDK1.9.9 to 2.2.0 and try to run and it is giving below error.

**To Reproduce(If applicable)**  
Updated WebSDK1.9.9 to 2.2.0 and try to run and it is giving below error.

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/f/1f805a0950de90bc8a39c3628dd7e2a10d727ead.png)

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

- OS: Windows 10 Pro, 64-bit operating system
- Browser: Version 99.0.4844.51 Chrome is up to date

@MaxM, @donte.zoom Can you guys please help me with this.

---

<div class="post-metadata">

**Author:** ![vbhosale](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@vbhosale](https://devforum.zoom.us/u/vbhosale)\
**Post date:** [March 9, 2022, 3:09pm UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513/2 "2022-03-09T15:09:48Z")

</div>

@tommy, any idea why is this happening.

---

<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:** [March 9, 2022, 3:36pm UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513/3 "2022-03-09T15:36:26Z")

</div>

Hi, @vbhosale,

Thanks for posting! This is a known issue and will be fixed in the next version. For your concern, please see the [change log](https://devsupport.zoom.us/hc/en-us/sections/9220917097869-web) and post below for guidance :

![CEC9D75A-70C9-4CBC-BFCB-181A5353A430](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/8/2883a92d5e8fc361f8a4c93a982c71e00a64531f.png)

> [@Angular SDK Compile Error](https://devforum.zoom.us/t/angular-sdk-compile-error/65074/3):
>
> @gabriele.guidi & @eskills.firebase. Thank you for posting in the Developer Forum. I’ve encountered this error in the past and was able to get the Angular SDK to compile by adding a specific type to the promise (i.e. Promise or Promise ). The Promise function can be found in the node\_modules folder as well: node\_modules/@zoomus/websdk/index.d.ts:67:32 You may also find this thread helpful as well: [If it contains no data and is being used purely for the resolve/reject functionality, use:](https://stackoverflow.com/questions/39781618/error-ts2314-generic-type-promiset-requires-1-type-arguments) Ple…

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![vbhosale](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@vbhosale](https://devforum.zoom.us/u/vbhosale)\
**Post date:** [March 9, 2022, 4:00pm UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513/4 "2022-03-09T16:00:56Z")

</div>

Hey, @donte.zoom thanks for that, It is working.

One question there is line, “If you are setting the dependent assets to the Zoom CDN, there is no issue. For example:  
ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/2.2.0/lib](https://source.zoom.us/2.2.0/lib)’, ‘/av’);”

this is for what?

---

<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:** [March 9, 2022, 4:14pm UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513/5 "2022-03-09T16:14:05Z")

</div>

Hi, @vbhosale,

Glad to hear that resolved the issue. Regards your question, are you asking what is that setter used for? If so, it is used to set zoom default requirements lib resource. To learn more you can check the Zoom Web SDK Reference here:

[https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html#setZoomJSLib](https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html#setZoomJSLib)

---

<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:** [April 9, 2022, 2:14am UTC](https://devforum.zoom.us/t/error-with-zoomwebsdk2-2-0-error-with-function/65513/6 "2022-04-09T02:14:24Z")

</div>

Closed on April 9, 2022, 2:14am UTC

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