webex-js-sdk
webex-js-sdk copied to clipboard
Webex SDK 3.3.1 | TypeError: Cannot read properties of undefined (reading 'internal')
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:
- I made a very basic component, with just trying to register the meeting for webex cloud connection.
- 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);
}
},
}
- See error
Application is breaking at this step in Webex SDK.
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