# "ReferenceError: PThread is not defined" in Chromebooks

**URL:** <https://devforum.zoom.us/t/referenceerror-pthread-is-not-defined-in-chromebooks/93258>\
**Category:** Web\
**Tags:** sdk\
**Created:** [August 11, 2023, 12:05pm UTC](https://devforum.zoom.us/t/referenceerror-pthread-is-not-defined-in-chromebooks/93258 "2023-08-11T12:05:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slim](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@slim](https://devforum.zoom.us/u/slim)\
**Post date:** [August 11, 2023, 12:05pm UTC](https://devforum.zoom.us/t/referenceerror-pthread-is-not-defined-in-chromebooks/93258/1 "2023-08-11T12:05:04Z")

</div>

**Description**  
Hello, our users have been encountering this error when they try to use the web SDK on their Chromebook.

Unfortunately, I cannot test this myself as I do not have access to a Chromebook.

I’d be happy to know if there are any workarounds you can suggest, or if this is already known and a fix is on the way.

**Browser Console Error**  
ReferenceError: PThread is not defined

**Which Web Meeting SDK version?**  
2.13.0, client view

**Meeting SDK Code Snippets**

```auto
const { ZoomMtg } = window;
ZoomMtg.setZoomJSLib('https://source.zoom.us/2.13.0/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();

const zoomError = (message, { method, status, errorCode, errorMessage }) => {
    const error = Object.assign(new Error(message), {
        data: {
            method,
            status,
            errorCode,
            errorMessage,
        },
    });
    console.error(error);
    Sentry.captureException(error);
};

const initZoom = (zoomData) => {
    ZoomMtg.init({
        ...meetingConfiguration,
        debug: false,
        leaveUrl: window.zoomLeaveUrl,
        success() {
            ZoomMtg.join({
                meetingNumber: zoomData.meetingNumber,
                passWord: zoomData.password,
                sdkKey: zoomData.sdkKey,
                signature: zoomData.signature,
                userName: zoomData.userName,
                zak: zoomData.zak,
                error: zoomError.bind(null, 'join error'),
            });
        },
        error: zoomError.bind(null, 'init error'),
    });
};

getZoomData().then(
    (response) => {
        initZoom(response.data);
    },
    (reason) => {
        Sentry.captureException(reason);
    },
);

```

**To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Use a Chromebook
2. Go to the URL that has the SDK implemented
3. Click “Join”
4. Open the developer console, you’ll see the error “ReferenceError: PThread is not defined”

**Device:**

- Device: Chromebook
- OS: Chrome OS 14541.0.0
- Browser: Chrome
- Browser Version 114.0.0 & 115.0.0

---

<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:** [September 10, 2023, 10:05pm UTC](https://devforum.zoom.us/t/referenceerror-pthread-is-not-defined-in-chromebooks/93258/2 "2023-09-10T22:05:13Z")

</div>

Closed on September 10, 2023, 10:05pm UTC

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