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