ZoomMtg.prepareJssdk() gives 2 SyntaxErrors and 2 warnings

During the loading of Zoom JS SDK in my React application I am getting two errors which ultimately is causing my Zoom meeting room not to open successfully.


  1. Uncaught SyntaxError: expected expression, got ‘<’

  2. The script from “http://localhost:3000/node_modules/@zoomus/websdk/dist/lib/webim.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.

Which version?

To Reproduce(If applicable)

componentDidMount() {
    ZoomMtg.setZoomJSLib('http://localhost:3000/node_modules/@zoomus/websdk/dist/lib', '/av');
    ZoomMtg.preLoadWasm(); // It works succesfully and loads all three files
    ZoomMtg.prepareJssdk(); //This line gives errors and warnings


Hey @vijay.singh,

Can you try adding those lines to the top of your file before the componentDidMount runs? My hunch is the files do not load in time and then the Web SDK code executes which throws the errors.

Here is an example with the Angular sample app:

Let me know if that fixes the issue. :slight_smile:


Hey @tommy I tried what you said and placed all the 3 lines of my code to the top of the file but still I don’t see any resolution of error.

ZoomMtg.setZoomJSLib('http://localhost:3000/node_modules/@zoomus/websdk/dist/lib', '/av');

Moreover when I am starting a Zoom call then below errors I get in console of my Firefox browser.

And in my Chrome browser below error I get when starting a Zoom call.

I believe(very much sure) this issue is caused due to CORB policy when the code ZoomMtg.prepareJssdk() runs. 2 days before it was working great with no warnings and errors in my console. I have already posted a question regarding that CORB warning here:

Hey @vijay.singh,

Thanks for the additional information. Are you using @michael.zoom’s React sample app in this case as well?

If not, can you please provide a link to your repo on Github with the issue, so I can debug locally?


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