# TypeError: m.AK.connectSocket is not a function, i have the black screen when i try connect to the meet zoom

**URL:** <https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196>\
**Category:** Meeting SDK\
**Created:** [November 28, 2023, 10:13pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196 "2023-11-28T22:13:33Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [November 28, 2023, 10:13pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/1 "2023-11-28T22:13:33Z")

</div>

I have the next problem with two versions zoom sdk 2.17.0 and 2.18.0

m.AK.connectSocket is not a function  
TypeError: m.AK.connectSocket is not a function  
at tn ([http://localhost:3000/static/js/bundle.js:43449:157](http://localhost:3000/static/js/bundle.js:43449:157))  
…  
at i..i..onmessage ([http://localhost:3000/static/js/bundle.js:183212:26](http://localhost:3000/static/js/bundle.js:183212:26))

Please someone help me, i need the solution urgently

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 29, 2023, 7:36pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/2 "2023-11-29T19:36:04Z")

</div>

Hi @palejovr  
Thanks for reaching out  
Can you please try and replicate this with our sample app?

> **[GitHub - zoom/meetingsdk-web-sample: Zoom Meeting SDK web sample](https://github.com/zoom/meetingsdk-web-sample)**
>
> Zoom Meeting SDK web sample. Contribute to zoom/meetingsdk-web-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [November 29, 2023, 7:44pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/3 "2023-11-29T19:44:29Z")

</div>

Hi Elisa,

I only have I have skdkey I do not have client id and client secret.

In the sample use client id and client secret.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 1, 2023, 5:50pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/4 "2023-12-01T17:50:02Z")

</div>

Hi @palejovr  
if you are working with a meeting sdk app, you should have client id and client secret

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [December 4, 2023, 4:20pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/5 "2023-12-04T16:20:36Z")

</div>

Hi, Elisa I have a sdk key, and i use this key in the react code y try again the connect with the zoom with the new version 2.18.2 but i get the same error.

In my zoom room I have that they are connected to the meeting but in the react client the indicated error appears.

My app is old, and this worked correctly in previous versions.

Please I need to help.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 4, 2023, 5:46pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/6 "2023-12-04T17:46:35Z")

</div>

Thanks Alejandro, can you please confirm what version of the Meeting sdk you are using? as well as what react version you have?  
Our latest version of meeting sdk 2.18 does not work with react 18, so you would have to downgrade your react to 16

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [December 4, 2023, 6:16pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/7 "2023-12-04T18:16:44Z")

</div>

The indicated change was applied but the error persists  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/3/e36f926fd3c3160a3622270ab9b8f2718e1bf7c4.png)

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 4, 2023, 6:32pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/8 "2023-12-04T18:32:32Z")

</div>

can you take a look at this reply

> [@Sample App React 2.18.0 crashing](https://devforum.zoom.us/t/sample-app-react-2-18-0-crashing/99236):
>
> Format Your New Topic as Follows: Meeting SDK 2.18.0 Client View Description Hello. Very strange problem, 2-3 days ago I tested Meeting SDK on react-sample app, but I was strugling to implement it in my code, yesterday Sample App was working too (same version, same backend), so I was going to ask about my ipmplementation, BUT today, when I tried sample, it’s crashing too. My story (just in case it can help): Yesterday I was trying to connect sample app and my app to one meeting, sample app co…

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [December 4, 2023, 7:06pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/9 "2023-12-04T19:06:20Z")

</div>

I apply the same considerations but I have the same error.

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [December 4, 2023, 7:19pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/10 "2023-12-04T19:19:07Z")

</div>

This is the code I am using based on the react example:

import React from ‘react’;

import ‘./App.css’;  
import { ZoomMtg } from ‘@zoomus/websdk’;

ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/2.18.2/lib](https://source.zoom.us/2.18.2/lib)’, ‘/av’);

ZoomMtg.preLoadWasm();  
ZoomMtg.prepareWebSDK();  
// loads language files, also passes any error messages to the ui  
ZoomMtg.i18n.load(‘en-US’);  
ZoomMtg.i18n.reload(‘en-US’);

function App() {

var authEndpoint = ‘[https://demo-zoom1.cedia.edu.ec](https://demo-zoom1.cedia.edu.ec)’  
var sdkKey = ‘KjmJzOcons8dqRWEaS5nLvxZbGvco1sSjkTy’  
var meetingNumber = ‘81711557583’  
var passWord = ‘VQ0z0y’  
var role = 0  
var userName = ‘React’  
var userEmail = ‘’  
var registrantToken = ‘palejovr@gmail.com’  
var zakToken = ‘’  
var leaveUrl = ‘[http://localhost:3000](http://localhost:3000)’

function getSignature(e) {  
e.preventDefault();

```
fetch(authEndpoint, {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    meetingNumber: meetingNumber,
    role: role
  })
}).then(res => res.json())
.then(response => {
  startMeeting(response.signature)
}).catch(error => {
  console.error(error)
})

```

}

function startMeeting(signature) {  
document.getElementById(‘zmmtg-root’).style.display = ‘block’

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

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

  },
  error: (error) => {
    console.log(error)
  }
})

```

}

return (

  
  

# Zoom Meeting SDK Sample React

```
    <button onClick={getSignature}>Join Meeting</button>
  </main>
</div>

```

);  
}

export default App;

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 7, 2023, 11:28pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/11 "2023-12-07T23:28:39Z")

</div>

are you running the sample app?

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [December 8, 2023, 4:04pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/12 "2023-12-08T16:04:00Z")

</div>

I try but i have the indicated error

---

<div class="post-metadata">

**Author:** ![kalplathia101](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kalplathia101/32/51921_2.png) [@kalplathia101](https://devforum.zoom.us/u/kalplathia101)\
**Post date:** [December 22, 2023, 3:07pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/13 "2023-12-22T15:07:21Z")

</div>

I also am facing the same issue and not able to resolve it. I installed the Angular sample app, but the issue is still there. Please provide some useful information to resolve it ASAP. Thanks.

---

<div class="post-metadata">

**Author:** ![palejovr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/palejovr/32/54323_2.png) [@palejovr](https://devforum.zoom.us/u/palejovr)\
**Post date:** [December 22, 2023, 3:23pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/14 "2023-12-22T15:23:19Z")

</div>

Exactly, the problem persist, @elisa.zoom we need your help to resolve this problem please.

---

<div class="post-metadata">

**Author:** ![devashish.nayak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devashish.nayak/32/52630_2.png) [@devashish.nayak](https://devforum.zoom.us/u/devashish.nayak)\
**Post date:** [January 24, 2024, 4:44am UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/15 "2024-01-24T04:44:37Z")

</div>

I am experiencing the same issue. Although it works in the sample app, when I attempt the same approach, the problem persists.

---

<div class="post-metadata">

**Author:** ![jsalcedo](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jsalcedo](https://devforum.zoom.us/u/jsalcedo)\
**Post date:** [February 23, 2024, 6:10pm UTC](https://devforum.zoom.us/t/typeerror-m-ak-connectsocket-is-not-a-function-i-have-the-black-screen-when-i-try-connect-to-the-meet-zoom/99196/16 "2024-02-23T18:10:07Z")

</div>

I present the same error when I upgrade my app to version 2.18.2.
