# Video SDK Error in Compiled Build error using craco

**URL:** <https://devforum.zoom.us/t/video-sdk-error-in-compiled-build-error-using-craco/111899>\
**Category:** Web\
**Created:** [June 13, 2024, 12:34pm UTC](https://devforum.zoom.us/t/video-sdk-error-in-compiled-build-error-using-craco/111899 "2024-06-13T12:34:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudaser](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mudaser/32/60619_2.png) [@mudaser](https://devforum.zoom.us/u/mudaser)\
**Post date:** [June 13, 2024, 12:34pm UTC](https://devforum.zoom.us/t/video-sdk-error-in-compiled-build-error-using-craco/111899/1 "2024-06-13T12:34:40Z")

</div>

**Description**

In dev mode I am able to use zoom sdk but when I create build getting error following error

```auto
TypeError: Cannot create property 'ChatPrivilege' on number '1.0000000000000007'
    at index.umd.js:35942:7
    at Object.<anonymous> (index.umd.js:2:64)
    at Object.<anonymous> (8.b5aa7b90.chunk.js:2:2483526)
    at u ((index):1:2698)
    at 123 (main.628d82da.chunk.js:1:64784)
    at u ((index):1:2698)
    at 934 (main.628d82da.chunk.js:1:1176044)
    at u ((index):1:2698)
    at Module.<anonymous> (index.js:1:1)
    at 392 (main.628d82da.chunk.js:1:795158)

```

**To Reproduce**  
Steps to reproduce the behavior:

1. Use `@zoom/videosdk` in a Create React App project with CRACO.
2. Build the project for production.
3. Observe the error in the browser console.

**Expected behavior**  
The module should work correctly in both development and production environments.

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**

- OS: [e.g., macOS, Windows]
- Browser: [e.g., Chrome, Safari]
- SDK Version: [specific version]
- React Version: [specific version]
- Build Tool: CRACO
- Additional context: [any other relevant information]

**Additional context**  
Add any other context about the problem here, such as relevant parts of your CRACO configuration.

**Browser Console Error**  
The full error message or issue you are running into.

**Which Web Video SDK version?**  
1.11.6

**Video SDK Code Snippets**  
just include the component actually crashes the app if we remove and build it work really well;

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 14, 2024, 1:34am UTC](https://devforum.zoom.us/t/video-sdk-error-in-compiled-build-error-using-craco/111899/2 "2024-06-14T01:34:39Z")

</div>

Hey @mudaser

Thanks for your feedback.

I searched the forum and found that some developers encountered similar issues before. Could you check if it’s the same issue?

> [@In my reactjs project, I am getting typeError: Cannot create property 'ChatPrivilege' on number '1.0000000000000007', But I am not even using the chat functionality in my app](https://devforum.zoom.us/t/in-my-reactjs-project-i-am-getting-typeerror-cannot-create-property-chatprivilege-on-number-1-0000000000000007-but-i-am-not-even-using-the-chat-functionality-in-my-app/104995/4):
>
> I am getting this error as soon as my component get rendered.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![mudaser](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mudaser/32/60619_2.png) [@mudaser](https://devforum.zoom.us/u/mudaser)\
**Post date:** [June 20, 2024, 1:12pm UTC](https://devforum.zoom.us/t/video-sdk-error-in-compiled-build-error-using-craco/111899/3 "2024-06-20T13:12:16Z")

</div>

we had already tried all solution but none of them is working because seems like it is webpack pipeline issue not the react/typescript version issue

---

<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:** [July 20, 2024, 11:12pm UTC](https://devforum.zoom.us/t/video-sdk-error-in-compiled-build-error-using-craco/111899/4 "2024-07-20T23:12:31Z")

</div>

Closed on July 20, 2024, 11:12pm UTC

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