Angular Template Publish Error - CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #427

Closed
opened 2025-08-09 17:16:15 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @naveedahmed1 on 9/11/2017

Hi,

With Angular Template in Visual Studio 2017, the publish command fails with below error:

node node_modules/webpack/bin/webpack.js --env.prod
EXEC(0,0): Error : CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
D:\MyProject\MyProject.csproj(49,5): Error MSB3073: The command "node node_modules/webpack/bin/webpack.js --env.prod" exited with code 3.

When using Angular CLI, I was able to increase memory in ng and ngc files under node_modules\.bin folder.

I made the same changes for this project as well. But it seems that its not working. Is there any way to increase mode memory in visual studio when using Angular template from Microsoft?

*Originally created by @naveedahmed1 on 9/11/2017* Hi, With Angular Template in Visual Studio 2017, the publish command fails with below error: ``` node node_modules/webpack/bin/webpack.js --env.prod EXEC(0,0): Error : CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory D:\MyProject\MyProject.csproj(49,5): Error MSB3073: The command "node node_modules/webpack/bin/webpack.js --env.prod" exited with code 3. ``` When using Angular CLI, I was able to increase memory in **ng** and **ngc** files under **`node_modules\.bin`** folder. I made the same changes for this project as well. But it seems that its not working. Is there any way to increase mode memory in visual studio when using Angular template from Microsoft?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#427
No description provided.