# 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

**URL:** <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>\
**Category:** Web\
**Created:** [March 4, 2024, 12:08pm UTC](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 "2024-03-04T12:08:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashok.kumar](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ashok.kumar](https://devforum.zoom.us/u/ashok.kumar)\
**Post date:** [March 4, 2024, 12:08pm UTC](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/1 "2024-03-04T12:08:02Z")

</div>

I am getting this error on production server, But I am not getting any such error in local development. I am using only video and voice services.

**Browser Console Error**  
The full error message or issue you are running into.  
Uncaught TypeError: Cannot create property ‘ChatPrivilege’ on number ‘1.0000000000000007’

**Which Web Video SDK version?**  
1.10.7

**Video SDK Code Snippets**  
The code snippets that are causing the error / issue so we can reproduce.

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

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

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

**Troubleshooting Routes**  
The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on [Zoom · GitHub](https://github.com/zoom)).

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

- Device: [HP Pavilion 15]
- OS: [windows 10]
- Browser: [Brave]

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [March 4, 2024, 3:49pm UTC](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/2 "2024-03-04T15:49:16Z")

</div>

Hi @ashok.kumar ,

When is this error occurring? On a specific event trigger, or when the application first loads? Additionally, what browser are you seeing this in? If able, a screenshot of the error would also be helpful.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![ashok.kumar](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ashok.kumar](https://devforum.zoom.us/u/ashok.kumar)\
**Post date:** [March 4, 2024, 4:47pm UTC](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/3 "2024-03-04T16:47:09Z")

</div>

Hi @rehema.zoom  
Thanks for responding.

I am getting this error on loading component which call tokenGenerate api. Once I get token I am rendering other component to join session.  
I am getting this error even before hitting token api on production server.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/8/d8b13f20c80bb6eb6ac3dc773299314f881ca29b.png)  
I am using brave browser.

---

<div class="post-metadata">

**Author:** ![ashok.kumar](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ashok.kumar](https://devforum.zoom.us/u/ashok.kumar)\
**Post date:** [March 4, 2024, 4:49pm UTC](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 "2024-03-04T16:49:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/5/051617d23616d3b08e8ffcffed2eb60f2e9e1b1e.png)  
I am getting this error as soon as my component get rendered.

---

<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:** [March 5, 2024, 2:24am UTC](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/5 "2024-03-05T02:24:07Z")

</div>

Hey @ashok.kumar

I searched the forum and found that some developers encountered similar issues before. They reported that it might be a TypeScript version + babel-loader issue. Could you check if it’s the same issue?

> [@Cannot create property "ChatPrivilege"](https://devforum.zoom.us/t/cannot-create-property-chatprivilege/103899/3):
>
> How did you resolved this issue? I have no issues run it locally but in production it giving this error.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ashok.kumar](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ashok.kumar](https://devforum.zoom.us/u/ashok.kumar)\
**Post date:** [March 5, 2024, 4:46am UTC](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/6 "2024-03-05T04:46:28Z")

</div>

Hi @vic.yang,  
thanks for responding.

I am not using typescript. I am not sure where I have to look resolve this typescript + babel-loader issue in my case. I am getting this issue after once I make build on productions.

please guide me how should look into this situation.  
Thanks

---

<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:** [March 5, 2024, 5:14am UTC](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/7 "2024-03-05T05:14:52Z")

</div>

Hey @ashok.kumar

Would it be possible for you to share some code snippets with us, particularly those related to the bundle build, if convenient?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ashok.kumar](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ashok.kumar](https://devforum.zoom.us/u/ashok.kumar)\
**Post date:** [March 5, 2024, 8:46am UTC](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/8 "2024-03-05T08:46:07Z")

</div>

It got fixed automatically after I delete node modules and package-lock file. after that I just installed modules again. It started working.

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [March 5, 2024, 9:34am UTC](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/9 "2024-03-05T09:34:10Z")

</div>

Closed on March 5, 2024, 9:34am UTC


