# WebSDK: Cannot read property 'toString' of undefined

**URL:** <https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354>\
**Category:** Web\
**Created:** [February 26, 2021, 11:35am UTC](https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354 "2021-02-26T11:35:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelbutcher](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joelbutcher/32/23691_2.png) [@joelbutcher](https://devforum.zoom.us/u/joelbutcher)\
**Post date:** [February 26, 2021, 11:35am UTC](https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354/1 "2021-02-26T11:35:51Z")

</div>

**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](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/b/7b7faa2344148cbf3bd1374fc9ec9f0101a574ed.png)

**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)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 27, 2021, 12:13am UTC](https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354/2 "2021-02-27T00:13:00Z")

</div>

Hey @joelbutcher,

Thank you for reaching out to the Zoom Developer Forum. First, make sure that you are [loading the required files](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#prepare) 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

---

<div class="post-metadata">

**Author:** ![joelbutcher](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joelbutcher/32/23691_2.png) [@joelbutcher](https://devforum.zoom.us/u/joelbutcher)\
**Post date:** [February 27, 2021, 9:46am UTC](https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354/3 "2021-02-27T09:46:36Z")

</div>

Hi Max,

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 1, 2021, 5:58pm UTC](https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354/4 "2021-03-01T17:58:27Z")

</div>

Happy to hear that @joelbutcher ! 🙂

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

CC @MaxM

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 1, 2021, 3:59am UTC](https://devforum.zoom.us/t/websdk-cannot-read-property-tostring-of-undefined/44354/5 "2021-04-01T03:59:13Z")

</div>

Closed on April 1, 2021, 3:59am UTC

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