404 error loading files from node_modules/@zoomus/websdk/dist/lib/

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’, ‘/av’);
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

It does work if I use the CDN lib:
ZoomMtg.setZoomJSLib(‘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

Device (please complete the following information):

  • MacOS - Chrome Browser

Hey @jinsley8 ,

If you can’t bundle the Web SDK node_module files like something like this:

Then I suggest using the CDN instead.

Thanks,
Tommy

Thanks, I’ll just use the CDN.

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