NPM build fails with heap size issue

Video SDK Type and Version
@zoom/videosdk”: “^1.4.0”

Platform
React js

Description
On importing the videosdk npm build fails

import ZoomVideo from "@zoom/videosdk";

Error?

Creating an optimized production build...
         
         <--- Last few GCs --->
         
         [5448:03B2AF30]   187840 ms: Mark-sweep (reduce) 1020.0 (1028.1) -> 1019.6 (1028.6) MB, 1527.3 / 0.0 ms  (average mu = 0.141, current mu = 0.005) allocation failure scavenge might not succeed
         [5448:03B2AF30]   189706 ms: Mark-sweep (reduce) 1020.8 (1028.8) -> 1020.7 (1029.6) MB, 1858.1 / 0.0 ms  (average mu = 0.076, current mu = 0.004) allocation failure scavenge might not succeed
         
         
         <--- JS stacktrace --->
         
     6>EXEC : FATAL error : MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory [D:\j3\workspace\Innovia_Dev\InnoviaClient\InnoviaClient.csproj]
         npm ERR! code ELIFECYCLE
         npm ERR! errno 134
         npm ERR! InnoviaWeb@0.1.0 build: `react-scripts build`
         npm ERR! Exit status 134
         npm ERR! 
         npm ERR! Failed at the InnoviaWeb@0.1.0 build script.
         npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
         
         npm ERR! A complete log of this run can be found in:
         npm ERR!     C:\Windows\system32\config\systemprofile\AppData\Roaming\npm-cache\_logs\2022-08-04T10_21_28_108Z-debug.log

How To Reproduce
Steps to reproduce the behavior including:
1. Install latest zoom video sdk version
*2. import in a component/page
*3. npm run build

I tried removing the sdk and runing the build command it worked but as soon as i add the import statement for zoom video sddk build fails

Anyone facing this issue?

Thank You
Gourish

1 Like