# TypeError: ZoomMtg.setZoomJSLib is not a function

**URL:** <https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766>\
**Category:** Web\
**Created:** [January 17, 2021, 1:07am UTC](https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766 "2021-01-17T01:07:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ojelicoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojelicoder/32/19152_2.png) [@ojelicoder](https://devforum.zoom.us/u/ojelicoder)\
**Post date:** [January 17, 2021, 1:07am UTC](https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766/1 "2021-01-17T01:07:40Z")

</div>

Hello,

I have a react.js project and used next.js for my seo work. I use zoom for online meeting. But, when I install zoomus getting a error.

The error in the console is as follows,  
**Uncaught TypeError: ZoomMtg.setZoomJSLib is not a function**  
**Uncaught TypeError: ZoomMtg.preLoadWasm is not a function**

 ![Screen Shot 2021-01-17 at 04.45.39](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/a/ca09ff9516e8f3474c0613ba7f5dbe56f9daca25.png)

I import zoomus sdk as follows,  
**const ZoomMtg = dynamic(() =\> import(’@zoomus/websdk’), {**  
\*\* ssr: false\*\*  
**});**

I call setZoomJSLib, preLoadWasm and prepareJssdk like this,  
**ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/1.8.6/lib](https://source.zoom.us/1.8.6/lib)’, ‘/av’);**  
**ZoomMtg.preLoadWasm();**  
**ZoomMtg.prepareJssdk();**

package.json is as follows,

 ![Screen Shot 2021-01-17 at 04.12.58](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/8/08a3c08b0c5585d3495fd62f63619762faf803ef.png)

Can you help me with the error? Thanks.

---

<div class="post-metadata">

**Author:** ![ojelicoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojelicoder/32/19152_2.png) [@ojelicoder](https://devforum.zoom.us/u/ojelicoder)\
**Post date:** [January 17, 2021, 10:06am UTC](https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766/2 "2021-01-17T10:06:26Z")

</div>

Is there anyone to help me ☹

---

<div class="post-metadata">

**Author:** ![ojelicoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojelicoder/32/19152_2.png) [@ojelicoder](https://devforum.zoom.us/u/ojelicoder)\
**Post date:** [January 17, 2021, 3:43pm UTC](https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766/3 "2021-01-17T15:43:05Z")

</div>

I solved,

useEffect(async () =\> {  
const ZoomMtg = await import("@zoomus/websdk");  
ZoomMtg.preLoadWasm();  
ZoomMtg.prepareJssdk();  
}, )

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 19, 2021, 7:14pm UTC](https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766/4 "2021-01-19T19:14:47Z")

</div>

Happy to hear you got it sorted out @ojelicoder ! 🙂

Thanks for sharing the solution!

-Tommy

---

<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:** [February 19, 2021, 5:14am UTC](https://devforum.zoom.us/t/typeerror-zoommtg-setzoomjslib-is-not-a-function/40766/5 "2021-02-19T05:14:59Z")

</div>

Closed on February 19, 2021, 5:14am UTC

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