You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the change I had to make to my next.config.js to get 100ms images loading:
webpack(config){// 100ms images do not work with next-image-loader, they need default webpack asset loader. See https://github.com/100mslive/web-sdks/issues/3438constimgLoaderIdx=config.module.rules.findIndex((r)=>r.loader==='next-image-loader');config.module.rules[imgLoaderIdx]={oneOf: [{test: /node_modules\/@100mslive\/.*.(png|svg)$/,type: 'asset',},config.module.rules[imgLoaderIdx],],};returnconfig;},
An alternative that also worked, but comes with additional implications:
What happened?
When using HMSPrebuilt with next.js, the screenshare images do not load correctly:
Looking at the dom, the images are getting
src="[object Object]"
:I suspect there is a
next.config.js
webpack setting I could change to get this working? It would be ideal to either not need that, or have a section on https://www.100ms.live/docs/javascript/v2/quickstart/prebuilt-quickstart explaining what configuration is necessaryHow can we reproduce the bug?
@100mslive/hms-video-store
and@100mslive/roomkit-react
What browsers are you seeing the problem on?
Chrome, Firefox, Safari, Microsoft Edge
The text was updated successfully, but these errors were encountered: