WebSDK: Cannot read property 'toString' of undefined

Description
I am trying to integrate the client WebSDK into a Laravel project (Laravel 8.26). I’m using a VueJS component (Vue 3) for the integration.

I’m generating the signature in PHP and passing it through blade, into the Vue component, along with meeting details, user details and the API Key (stored in .env).

I have a button that initiates the user joining the meeting by calling a method:

startMeeting() {
    const meetConfig = {
        meetingNumber: parseInt(this.meeting.zoom_id),
        apiKey: this.apiKey,
        leaveUrl: 'https://zoom.us',
        userName: this.user.name,
        passWord: this.meeting.password,
        role: this.role,
    };

    ZoomMtg.init({
        leaveUrl: meetConfig.leaveUrl,
        isSupportAV: true,
        success: () => {
            ZoomMtg.join({
                signature: this.signature,
                apiKey: meetConfig.apiKey,
                meetingNumber: meetConfig.meetingNumber,
                userName: meetConfig.userName,
                passWord: meetConfig.passWord,
                success: (res) => {
                    console.log('join meeting success');
                },
                error: (err) => {
                    console.log(err);
                },
            });
        },
        error: (err) => {
            console.log(err);
        }
    });
},

Error
“Cannot read property ‘toString’ of undefined”

Which Client Web SDK version?
1.9.0

Screenshots

Screenshot 2021-02-26 at 11.34.14

Device (please complete the following information):

  • Device: 15" MacBook Pro 2016
  • OS: macOS Big Sur
  • Browser: Chrome
  • Browser Version: 88.0.4324.192 (Official Build) (x86_64)

Hey @joelbutcher,

Thank you for reaching out to the Zoom Developer Forum. First, make sure that you are loading the required files at the top of that file.

If that doesn’t help, are you able to share a public git repo with the code demonstrating this issue? I’m working on writing a sample app for VueJS 2 right now but I haven’t tested this with VueJS 3 just yet.

I’ll see if we can determine the issue and if not I’ll keep you posted on the progress of the Sample VueJS 2 App.

Thanks,
Max

Hi Max,

I’ve managed to successfully get the WebSDK to work with VueJS 3.

1 Like

Happy to hear that @joelbutcher ! :slight_smile:

Feel free to share your Vue.js implementation here with the community if you would like. :slight_smile:

CC @MaxM

Thanks,
Tommy

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.