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

**URL:** <https://devforum.zoom.us/t/error-cannot-find-module-disk-file-writer/111131>\
**Category:** Web\
**Created:** [June 2, 2024, 12:54am UTC](https://devforum.zoom.us/t/error-cannot-find-module-disk-file-writer/111131 "2024-06-02T00:54:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff-flynt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeff-flynt/32/60245_2.png) [@jeff-flynt](https://devforum.zoom.us/u/jeff-flynt)\
**Post date:** [June 2, 2024, 12:54am UTC](https://devforum.zoom.us/t/error-cannot-find-module-disk-file-writer/111131/1 "2024-06-02T00:54:22Z")

</div>

**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:

```auto
    "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?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 3, 2024, 8:15am UTC](https://devforum.zoom.us/t/error-cannot-find-module-disk-file-writer/111131/2 "2024-06-03T08:15:16Z")

</div>

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?

```javascript
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

---

<div class="post-metadata">

**Author:** ![jeff-flynt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeff-flynt/32/60245_2.png) [@jeff-flynt](https://devforum.zoom.us/u/jeff-flynt)\
**Post date:** [June 4, 2024, 1:36am UTC](https://devforum.zoom.us/t/error-cannot-find-module-disk-file-writer/111131/3 "2024-06-04T01:36:54Z")

</div>

Hello @vic.yang ,

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

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 4, 2024, 11:37am UTC](https://devforum.zoom.us/t/error-cannot-find-module-disk-file-writer/111131/4 "2024-07-04T11:37:33Z")

</div>

Closed on July 4, 2024, 11:37am UTC

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