React Web SDK Client

Format Your New Topic as Follows:

Trying to integrate the : meetingsdk

— using —
@zoomus/websdk”: “2.12.0”
“next”: “13.4.1”,

— Error —

When the code is trying to run ZoomMtg.init({ … })

It runs all other ZoomMtg functions perfectly, it only breaks when it is the .init({…})

Uncaught TypeError: Cannot read properties of null (reading ‘0’)
at P (zoomus-websdk.umd.min.js?17f8:2:3721166)
at combination (combineReducers.js?b808:120:1)
at dispatch (createStore.js?3e40:165:1)
at eval (index.js?511b:11:1)
at Object.eval [as zmg_initMeetingConfig] (bindActionCreators.js?b25e:3:1)
at a.value (zoomus-websdk.umd.min.js?17f8:2:1517242)
at C (zoomus-websdk.umd.min.js?17f8:2:3851290)
at Object.init (zoomus-websdk.umd.min.js?17f8:2:3812713)
at configureZoom (zoom.tsx?d939:34:13)

— Code –

const configureZoom = async () => {
    const { ZoomMtg } = await import('@zoomus/websdk');

    ZoomMtg.setZoomJSLib('https://source.zoom.us/2.12.0/lib', '/av');

    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareWebSDK();

    ZoomMtg.init({
      leaveUrl,
      success: success => {
        console.log(success);

        ZoomMtg.join({
          signature,
          sdkKey,
          meetingNumber,
          passWord,
          userName,
          userEmail,
          tk: '',
          zak: '',
          success: success => {
            console.log(success);
          },
          error: error => {
            console.log(error);
          },
        });
      },
      error: error => {
        console.log(error);
      },
    });
  };

I’m totally stuck and can`t find a way to resolve this.

perhaps a problem with the react version - zoom SDK is build with react v16.13.0