Video SDK Error in Compiled Build error using craco

Description

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

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;

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?

Thanks
Vic

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

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