webex-js-sdk icon indicating copy to clipboard operation
webex-js-sdk copied to clipboard

Webex SDK 3.3.1 | TypeError: Cannot read properties of undefined (reading 'internal')

Open vishalyadaviit opened this issue 6 months ago • 6 comments

Webex SDK throwing | TypeError: Cannot read properties of undefined (reading 'internal')

Somehow the this loses the scope it has initially.

To Reproduce Node Version: v20.12.2 UI Framework: Vue: v3.4.29 Webex SDK: v3.3.1 Steps to reproduce the behavior:

  1. I made a very basic component, with just trying to register the meeting for webex cloud connection.
  2. You can take look at the sandbox (https://codesandbox.io/p/sandbox/webex3-sdk-poc-nmsytk)
export default {

data() {
    const myAccessToken =
      'YTA2MmEyZDItOTdmMS00MWRiLWE1NzQtMmRkYzIyMjQwNjNkMzhiZTgxNGUtNDE4_PF84_ba4155e8-7127-4fe1-b1a3-d8dfd3471500';
    return {
      webex: Webex.init({
        credentials: {
          access_token: myAccessToken,
        },
        logger: {
          level: 'debug',
        },
      }),
    };
  },
  async mounted() {
     try {
        await this.webex.meetings.register();
      } catch (error) {
        console.log('Mounted try catch error');
        console.log(error);
      }
  },

}

  1. See error

image

Application is breaking at this step in Webex SDK. image

Expected behavior It should successfully register the sdk. I'm passing a valid access_token.

Platform (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Device Type Desktop

vishalyadaviit avatar Aug 03 '24 18:08 vishalyadaviit