ActiveReportsjs error when building - heap out of memory

Hi I was trying to implement the ActiveReportsJS React component into our application but the building process took so long and it couldnt even build, always getting Javascript heap out of memory, I just upgraded to the premium plan not sure if I have to config anything before the deployment.