Skip to content

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

@vishalyadaviit

Description

@vishalyadaviit

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:

<script crossorigin src="https://unpkg.com/[email protected]/umd/webex.min.js"></script>
  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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions