Zoom Video Web SDK - Uncaught TypeError: Cannot read properties of undefined (reading 'malloc')


I have use this project.

zoom/ sample-app-videosdk

It runs normally on local but when I build a project with yarn build
And deploy on server

The project has a bug that prevents me from sharing screens and videos.

Please check it, thanks


Which Web Video SDK version?

I have updated to Web Video SDK 1.1.4+, but it still happen.

Hey @phucnd

Thanks for your feedback.

Could you please provide the platform, browser, and procedure for reproducing the errors? It’s very helpful to us troubleshoot the issue.


Did you manage to find a solution? I just deployed my app to AWS Amplify and I am running across the same issue.

Hey @poufy ,

Can you confirm the dependent assets are accessible in your production env?

Please also make sure if you are using Chrome Origin Trials that you have enabled them on your production domain: https://marketplace.zoom.us/docs/sdk/native-sdks/web/advanced/web-isolation


I have changed

await zmClient.init("en-US", `${window.location.origin}/lib`, 'zoom.us');
await zmClient.init('en-US', 'Global');

It works normally but does not use the lib in local. :mask:

Hey @phucnd ,

That is correct, you can either host the assets yourself and provide the path to them in zmClient.init() or use our CDN. :slight_smile:


1 Like