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

Description

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

Error

Which Web Video SDK version?
1.1.3.1

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.

Thanks
Vic

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

Thanks,
Tommy

I have changed

await zmClient.init("en-US", `${window.location.origin}/lib`, 'zoom.us');
 to    
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:

-Tommy

1 Like