chat-sdk-javascript
chat-sdk-javascript copied to clipboard
Property 'createUser' does not exist on type 'typeof CometChat'

I am developing a plugin for cometchat and on the web implementation I am having issues with the createUser method. The error is shown on the picture above.
The complete code that I used is below:
var user = new CometChat.User(options.uid);
user.setName(name);
CometChat.createUser(user, this.apiKey)
I installed the 2.0.7-beta2 and vscode recognized the method.