# TypeError: Ct.createClient is not a function

**URL:** <https://devforum.zoom.us/t/typeerror-ct-createclient-is-not-a-function/78600>\
**Category:** Web\
**Created:** [November 10, 2022, 12:19pm UTC](https://devforum.zoom.us/t/typeerror-ct-createclient-is-not-a-function/78600 "2022-11-10T12:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilal.aurangzeb](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bilal.aurangzeb](https://devforum.zoom.us/u/bilal.aurangzeb)\
**Post date:** [November 10, 2022, 12:19pm UTC](https://devforum.zoom.us/t/typeerror-ct-createclient-is-not-a-function/78600/1 "2022-11-10T12:19:20Z")

</div>

Hi I am using the zoom meeting websdk and using it’s embedded client as you have also used in your sample vue app in git to join a meeting on front end made in vue and vite as build tool. Everything works fine when I run my web app locally on my system. I am able to join call and do everything i want. but when i make its build and deploy it on server i get the error on my chrome console.  
TypeError: Ct.createClient is not a function .

I have tried this on different node versions as well 16 and 14.  
Even ,I created a build and deployed it on google firebase hosting. but still facing the same ERROR.  
Note: It works fine locally but doesn’t work when a build is made.

Here is the code I am using.  
My sdk verison is “@zoomus/websdk”: “2.9.0”,  
node version is 14.21.0

import ZoomMtgEmbedded from ‘@zoomus/websdk/embedded’;  
const client = ZoomMtgEmbedded.createClient();  
client.init({  
debug: true,  
zoomAppRoot: meetingSDKElement,  
language: ‘en-US’,  
customize: {  
meetingInfo: [‘topic’, ‘host’, ‘mn’, ‘pwd’, ‘telPwd’, ‘invite’, ‘participant’, ‘dc’, ‘enctype’],  
toolbar: {  
buttons: [  
{  
text: 'End Call ',  
className: ‘CustomButton’,  
onClick: () =\> {  
client.endMeeting();

```
      }
    }
  ]
},
video: {
  isResizable: true,
  viewSizes: {
    default: {
      width: 700,
      height: 500
    },
    ribbon: {
      width: 300,
      height: 700
    }
  }
}

```

}  
});

client.join({  
sdkKey: sdkKey,  
signature:signature,  
meetingNumber: meetingData.id,  
password: meetingData.password,  
userName: userName,  
userEmail: userEmail,  
success:()=\>{  
console.log(“calling successdully joined”);

}  
})

---

<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:** [December 10, 2022, 10:19pm UTC](https://devforum.zoom.us/t/typeerror-ct-createclient-is-not-a-function/78600/2 "2022-12-10T22:19:49Z")

</div>

Closed on December 10, 2022, 10:19pm UTC

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