JavaScript heap out of memory in Angular 7 using Azure DevOps

0 votes
I'm receiving the following error: FATAL ERROR: CALL_AND_RETRY_LAST  After upgrading to Angular 7.1, the allocation failed because the JavaScript heap was out of memory. The prior version, 6.1, worked flawlessly.

Only when I perform the ng build —prod command in Azure DevOps do I get the problem. In local, it works perfectly. Please help.
Feb 9, 2022 in Other DevOps Questions by Edureka
• 850 points
3,155 views

1 answer to this question.

0 votes

Try running the prod build as follows:

node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod

answered Feb 9, 2022 by Bhavitha
• 1,000 points

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,979 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
0 votes
1 answer

Is it possible to have a link to raw content of file in Azure DevOps

Sure, here's the call for the rests: GET ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
709 views
0 votes
1 answer

How to include Different Types of Workitems in Boards of Azure DevOps?

Predefined backlog levels in Azure DevOps may ...READ MORE

answered Feb 11, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,620 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP