# 404 error loading files from node\_modules/@zoomus/websdk/dist/lib/

**URL:** <https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599>\
**Category:** Web\
**Created:** [April 9, 2021, 4:41am UTC](https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599 "2021-04-09T04:41:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinsley8](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jinsley8](https://devforum.zoom.us/u/jinsley8)\
**Post date:** [April 9, 2021, 4:41am UTC](https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599/1 "2021-04-09T04:41:38Z")

</div>

**Description**  
I’m integrating the Web SDK into a Next.js app. I have node generating a signature and teh JWT is working properly but I am getting 404 errors for files from **node\_modules/@zoomus/websdk/dist/lib/** even though they are available.

I was trying to access the local lib files which isn’t working. It doesn’t look like Next.js allows you to access anything other than css from node\_modules.

import { ZoomMtg } from ‘@zoomus/websdk’;  
ZoomMtg.setZoomJSLib(‘[http://localhost:3000/node\_modules/@zoomus/websdk/dist/lib](http://localhost:3000/node_modules/@zoomus/websdk/dist/lib)’, ‘/av’);  
ZoomMtg.preLoadWasm();  
ZoomMtg.prepareJssdk();

It does work if I use the CDN lib:  
ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/1.9.1/lib](https://source.zoom.us/1.9.1/lib)’, ‘/av’);

**Error**  
XHRGEThttp://localhost:3000/node\_modules/@zoomus/websdk/dist/lib/av/6331\_audio.encode.wasm  
[HTTP/1.1 404 Not Found 92ms]

XHRGEThttp://localhost:3000/node\_modules/@zoomus/websdk/dist/lib/av/6331\_video.decode.wasm  
[HTTP/1.1 404 Not Found 903ms]

GEThttp://localhost:3000/node\_modules/@zoomus/websdk/dist/lib/webim.min.js  
[HTTP/1.1 404 Not Found 718ms]

GEThttp://localhost:3000/node\_modules/@zoomus/websdk/dist/lib/webim.min.js  
[HTTP/1.1 404 Not Found 718ms]

GEThttp://localhost:3000/node\_modules/@zoomus/websdk/dist/lib/av/6331\_js\_media.min.js  
[HTTP/1.1 404 Not Found 705ms]

**Which Web Client SDK version?**  
SDK version 1.9.1

I’m using Next.js v10.1.3 - not sure if this matters to know anything about webpack.

**Screenshots**

 ![error](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/d/cd15ba3636e6da6f4d2d42fd1f4b095cf85be26a.png)

**Device (please complete the following information):**

- MacOS - Chrome Browser

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 9, 2021, 3:51pm UTC](https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599/2 "2021-04-09T15:51:36Z")

</div>

Hey @jinsley8 ,

If you can’t bundle the Web SDK node\_module files like something like this:

> <https://github.com/zoom/websdk-sample-angular/blob/master/angular.json#L25>

Then I suggest using the [CDN](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#option-2-import-through-cdn) instead.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jinsley8](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jinsley8](https://devforum.zoom.us/u/jinsley8)\
**Post date:** [April 9, 2021, 8:11pm UTC](https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599/3 "2021-04-09T20:11:17Z")

</div>

Thanks, I’ll just use the CDN.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 9, 2021, 10:17pm UTC](https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599/4 "2021-04-09T22:17:03Z")

</div>

Thank you for the update, I’m happy to hear that Tommy was able to help. I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Max

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 9, 2021, 10:17pm UTC](https://devforum.zoom.us/t/404-error-loading-files-from-node-modules-zoomus-websdk-dist-lib/47599/5 "2021-04-09T22:17:07Z")

</div>

Closed on April 9, 2021, 10:17pm UTC


