Closed lpbonomi closed 4 months ago
@lpbonomi can you please share a codesandbox for the repro. will look into it.
Hi @raviteja83, I've uploaded the repro to codesandbox. You just have to try to build the project to see the error:
https://codesandbox.io/p/github/lpbonomi/100ms-repro/main
Thanks :)
@lpbonomi
import dynamic from 'next/dynamic'
const HMSPrebuilt = dynamic(() => import('@100mslive/roomkit-react').then(res => res.HMSPrebuilt), { ssr: false });
Please try importing the component like this.
Hi @raviteja83, had to add the "use client"
at the top but it works! Thank you so much for your help :)
What happened?
Can't build my NextJS website when using the
<HMSPrebuilt />
componentHow can we reproduce the bug?
I'm just using this:
with:
What browsers are you seeing the problem on?
No response