Base solution for your next web application
Open Closed

Azure DevOps Build Pipeline Error #8220


User avatar
0
Mahinthan created

I'm using .NET Core/Angular 8 solution

When I try to setup the build pipeline for the Angular project, the Publish task is failing with the following error

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

I have tried the answer given here - https://support.aspnetzero.com/QA/Questions/6990 But no luck. It is giving another error as below

An invalid configuration file was found ./angular.json. Please delete the file before running the command

If I delete the file, Im not able to publish the project.

Can anyone help on this case please?

Thanks Mahi


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    I have tried the answer given here - https://support.aspnetzero.com/QA/Questions/6990

    Is your solution similar to the following?

    "scripts": {
        "ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --prod"
    }
    

    Someone mentioned that this problem does not occur with the latest node.js, have you tried it?

    https://github.com/angular/angular-cli/issues/13734#issuecomment-544651317

  • User Avatar
    0
    Mahinthan created

    Thank you. Using the lates node version along with above command resolves the problem

    Regards Mahi