-
Notifications
You must be signed in to change notification settings - Fork 433
Azure Devops builds failing - Javascript Heap out of memory #736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I do not know why but I got this error last week. I fixed our automated build by updating the webpack script as follows (I put a random higher number).
However, later I read that apparently, the correct approach is to set an environment variable
Hope it helps. |
@alexbenitez I have tried How to set the environment variable for Azure DevOps build agents? Where does the line of code you show go, file, location etc? |
@alexbenitez I just added a Azure powershell task to pipeline, just before build to set environment variable at machine level. It didn't work either. See YAML below
|
Update: Steps
|
@alexbenitez thanks for the tip |
@codehippie1 what changes are required for csproj and package.json files? |
Solution for Azure Pipeline in Azure DevOps:
Set the Environment Variable |
No funciona, debo tener esta varible en el package |
I got this error when trying to run it 2023-08-05T07:55:39.1552140Z ##[section]Starting: PowerShell Script
2023-08-05T07:55:42.1487257Z ##[error]PowerShell exited with code '1'. The strange thing is that no one changed the pipeline, as well running old build that were succeding bring the javascript error |
Getting "Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" on all azure builds. Local builds are fine.
PS: I have seen Issue# 262
What did I try?
RunWebpack
to addnode --max_old_space_size=4096
. I see this gets executed twice andmax_old_space_size
is being ignored the second time. See below error.Exact Error:
Location of Error:
The text was updated successfully, but these errors were encountered: