You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Web Channel -SDK: Uncaught TypeError: WebSDK is not a constructor

Accepted answer
82
Views
1
Comments

Summary:

Accessing the web-sdk from JavaScript code give below error for Oracle Web Channel

Bots = new WebSDK(chatWidgetSettings);

Uncaught TypeError: WebSDK is not a constructor


Content (required):

Below code working with version 20.8.1, but throwing "WebSDK is not a constructor" with latest SDK version 22.12.0

Bots = new WebSDK(chatWidgetSettings);

I tried to follow this link https://docs.oracle.com/en/cloud/paas/digital-assistant/sdk-js/index.html#html-script-tag

Version (include the version you are using, if applicable):

22.12.0

Code Snippet (add any code snippets that support your topic, if applicable):

Bots = new WebSDK(chatWidgetSettings);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!