chat-sdk-javascript icon indicating copy to clipboard operation
chat-sdk-javascript copied to clipboard

Property 'createUser' does not exist on type 'typeof CometChat'

Open gdinn opened this issue 6 years ago • 1 comments

image

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)

gdinn avatar Apr 06 '20 14:04 gdinn

I installed the 2.0.7-beta2 and vscode recognized the method.

gdinn avatar Apr 06 '20 15:04 gdinn