# NextJS and Web SDK - Stuck in a black screen

**URL:** <https://devforum.zoom.us/t/nextjs-and-web-sdk-stuck-in-a-black-screen/77420>\
**Category:** Web\
**Created:** [October 14, 2022, 5:45pm UTC](https://devforum.zoom.us/t/nextjs-and-web-sdk-stuck-in-a-black-screen/77420 "2022-10-14T17:45:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdemarcoappolonio](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bdemarcoappolonio](https://devforum.zoom.us/u/bdemarcoappolonio)\
**Post date:** [October 14, 2022, 5:45pm UTC](https://devforum.zoom.us/t/nextjs-and-web-sdk-stuck-in-a-black-screen/77420/1 "2022-10-14T17:45:23Z")

</div>

**Description**

Hello!  
I’m having problems with my React application, which runs under NextJS.  
This piece of code used to work in the past and I’m not sure when it broke. The problem is the following:

The page is stuck on a black screen whenever I try to use the meeting client.

**Browser Console Error**

The only messages logged in the console are:

```auto
To use gallery view on Chrome/Chromium browsers, SharedArrayBuffer is required.
  See for details: https://marketplace.zoom.us/docs/sdk/overview/improve-performance
zoomus-websdk.umd.min.js?17f8:2 pre load wasm success: https://source.zoom.us/2.8.0/lib/av/1501_audio.encode.wasm
zoomus-websdk.umd.min.js?17f8:2 pre load wasm success: https://source.zoom.us/2.8.0/lib/av/1501_video.simd.wasm`

```

and they don’t tell much.

**Which Web Meeting SDK version?**

2.8.0

**Meeting SDK Code Snippets**

This is the code of the page:

```auto
const Appointment: NextPage<IAppointmentsPageProps> = ({ zoomInfo }) => {
  const router = useRouter();

  useEffect(() => {
    const zoomMtg = require('@zoomus/websdk').ZoomMtg;
    zoomMtg.setZoomJSLib('https://source.zoom.us/2.8.0/lib', '/av');
    zoomMtg.preLoadWasm();
    zoomMtg.prepareWebSDK();
    zoomMtg.i18n.load(router.locale ?? 'en-US');
    zoomMtg.i18n.reload(router.locale ?? 'en-US');
    zoomMtg.init({
      leaveUrl: zoomInfo.leaveUrl,
      success: (success: any) => {
        zoomMtg.join({
          signature: zoomInfo.zoomMeetingSignature,
          apiKey: zoomInfo.zoomApiKey,
          meetingNumber: zoomInfo.zoomMeetingId,
          userName: zoomInfo.username,
          passWord: zoomInfo.zoomPassword,
          success: (success: any) => {
            console.log('join success', success);
          },
          error: (error: any) => {
            console.log('Zoom Join Error', error);
          },
        });
      },
      error: (error: any) => {
        console.log('Zoom init error', error);
      },
    });
  }, [router.locale, zoomInfo]);
  return <></>;
};

```

The `zoomInfo` object comes dynamically and contains all of the necessary information.

**Troubleshooting Routes**  
Well, I tried the React sample app and everything works fine, but I couldn’t find any NextJS-related resources. Also, applying the same React guide to a fresh NextJS app `npx create-next-app@latest` also doesn’t work (but it produces a different error).

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

- Device: Lenovo Thinkpad
- OS: Windows 10
- Browser: Chrome
- Browser Version 106.0.5249.103 (Official Build) (64-bit)

Thank you very much for the help!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 19, 2022, 12:35am UTC](https://devforum.zoom.us/t/nextjs-and-web-sdk-stuck-in-a-black-screen/77420/2 "2022-10-19T00:35:48Z")

</div>

Hi @bdemarcoappolonio please submit a support ticket with this information and screenshots/video of the issue you’re experiencing. Also share the meeting id so we can see if there is anything we can pickup on the backend.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 18, 2022, 10:35am UTC](https://devforum.zoom.us/t/nextjs-and-web-sdk-stuck-in-a-black-screen/77420/3 "2022-11-18T10:35:59Z")

</div>

Closed on November 18, 2022, 10:35am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
