Error: Cannot find module 'disk-file-writer'

Description
When using the Meeting SDK for Component, it loads the joining meeting screen, but it does not load the UI after a meeting has been joined. When I open the console, I see: Error: Cannot find module 'disk-file-writer'. It loads: https://source.zoom.us/3.7.0/lib/av/js_media.min.js.

In turn, I then get this error: ReferenceError: JsMediaSDK_Instance is not defined. When I type: window.JsMediaSDK_Instance in the console, it returns undefined.

I have noticed this issue not just with the Meeting SDK, but all the SDK’s for web. I assume the error arises because of the js_media.min.js file.

Which Web Meeting SDK version?
v3.7.0

Meeting SDK Code Snippets
v3.7.0 of js_media.min.js

Error is referencing this line:

    "object" == typeof exports && "object" == typeof module ? module.exports = t(require("disk-file-writer")) : "function" == typeof define && define.amd ? define("JsMediaSDK_Instance", ["disk-file-writer"], t) : "object" == typeof exports ? exports.JsMediaSDK_Instance = t(require("disk-file-writer")) : e.JsMediaSDK_Instance = t(e["disk-file-writer"])

Device (please complete the following information):

  • Device: Windows Desktop
  • OS: Windows 11
  • Browser: Brave (Chromium Based)
  • Browser Version [e.g. 88.0.4324.150 (Official Build) (x86_64)]

Any ideas?

Hey @jeff-flynt

Thanks for your feedback.

Can I confirm if your page is using RequireJS? If so, this is a known issue.
If so, could you try the following workaround?

requirejs.config({
    paths: {
        '@zoom/meetingsdk': "https://source.zoom.us/zoom-meeting-{version}.min",
        'JsMediaSDK_Instance': 'https://source.zoom.us/{version}/lib/av/js_media.min',
        'disk-file-writer':'https://source.zoom.us/{version}/lib/av/js_media.min',
    }
});
requirejs([ '@zoom/meetingsdk', 'JsMediaSDK_Instance','disk-file-writer'],function(ZoomMtg,JsMediaSDK_Instance){
    window.JsMediaSDK_Instance = JsMediaSDK_Instance;
});

Thanks
Vic

Hello @vic.yang ,

I am not using requirejs. Do you by chance know of any other potential fixes?

Thank you

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