# TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner')

**URL:** <https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-reactcurrentowner/123829>\
**Category:** Meetings\
**Created:** [January 4, 2025, 1:23am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-reactcurrentowner/123829 "2025-01-04T01:23:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manzoej](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/manzoej/32/66088_2.png) [@manzoej](https://devforum.zoom.us/u/manzoej)\
**Post date:** [January 4, 2025, 1:23am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-reactcurrentowner/123829/1 "2025-01-04T01:23:41Z")

</div>

##Meeting SDK (ReactCurrentOwner) error

**Description**  
I have implemented the ZoomMtgEmbedded package and had followed the documentation correctly on my NextJS project, but I still encountered this error “TypeError: Cannot read properties of undefined (reading ‘ReactCurrentOwner’)”, which is not fixable even when trying to clear the NextJS cache and re-installing the packages. And I had also tried to hard code the parameters to try and check if the error persist but still no luck in making it work, here is my code snippet that use ZoomMtgEmbedded package: "“use client”;

import Error from “next/error”;  
import { useSearchParams } from “next/navigation”;  
import { useEffect } from “react”;  
import ZoomMtgEmbedded from “@zoom/meetingsdk/embedded”;

const MeetingComponent = ({  
meetingId,  
accessToken  
}: {  
meetingId: string;  
accessToken: string;  
}) =\> {  
const searchParams = useSearchParams();

```
const username = searchParams.get("name");

useEffect(() => {
    (async () => {
        // Initialize Zoom
        const client = ZoomMtgEmbedded.createClient();

        const meetingSDKElement = document.getElementById("meetingSDKElement")!;

        client.init({ zoomAppRoot: meetingSDKElement, language: "en-US", patchJsMedia: true });

        client.join({
            signature:
                "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJlOU1QS3liU0xtRzlUZDRQM3NXVUEiLCJzZGtLZXkiOiJlOU1QS3liU0xtRzlUZDRQM3NXVUEiLCJtbiI6Ijg0MTQ1MDYzNjY3Iiwicm9sZSI6MCwidG9rZW5FeHAiOjE3MzU5NTYxMTIsImlhdCI6MTczNTk1MjUxMiwiZXhwIjoxNzM1OTU2MTEyfQ.wUWriFVhg6EwG2JqGZ_dfjMJ1-VLtv-bqXJD-2P7MWw",
            sdkKey: "e9MPKybSLmG9Td4P3sWUA",
            meetingNumber: "84145063667",
            password: "W7BS7N",
            userName: "EJM"
        });
    })();
}, []);

return (
    <>
        <div id="meetingSDKElement"></div>
    </>
);

```

};

export default MeetingComponent;  
"

**Full Error Message?**  
_TypeError: Cannot read properties of undefined (reading ‘ReactCurrentOwner’)"_

---

<div class="post-metadata">

**Author:** ![Henry\_John](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/henry_john/32/68068_2.png) [@Henry\_John](https://devforum.zoom.us/u/Henry_John)\
**Post date:** [March 20, 2025, 8:56am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-reactcurrentowner/123829/2 "2025-03-20T08:56:32Z")

</div>

Did you find a solution?
