TypeError: ZoomMtg.setZoomJSLib is not a function

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

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’, ‘/av’);
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

package.json is as follows,

Can you help me with the error? Thanks.

Is there anyone to help me :frowning:

I solved,

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

Happy to hear you got it sorted out @ojelicoder ! :slight_smile:

Thanks for sharing the solution!

-Tommy

1 Like

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