Base solution for your next web application
Open Closed

The command "ng build --prod" fails with exit code 9009 (Angular and .Net Core v6.4) #6147


User avatar
0
brallierc created

Fresh download of 6.4 and when I attempt to publish the Host solution (which is a merged solution with Angular) I get the error:

The command "ng build --prod" exited with code 9009.

I have read online about it being related to a memory issue but I have tried increasing the memory. Anyone else have this problem and know how to solve?


6 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, did this happen on your machine for versions before 6.4.0?

  • User Avatar
    0
    brallierc created

    yes, as it turns out the same thing happens with 6.3.1 however it didnt happen with 6.2.x

  • User Avatar
    0
    maharatha created

    I am facing the below issue which might be the same :

    https://support.aspnetzero.com/QA/Questions/6138

  • User Avatar
    0
    brallierc created

    I have already tried increasing the memory using that method. It did not solve my problem. Oddly enough, when I run ng build --prod from the command line I do not get any failures, it's only when I try to publish from within Visual

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @brallierc

    As a temporary solution, you can edit *.Host.csproj and remove "ng build --prod" command and publish angular app using the command line.

    We have switched to this approach as well and we will remove ng build --prod command from *.Host.csproj for the next releases.

  • User Avatar
    1
    brallierc created

    Thank you for that information. I did also find that my problem disappeared after I updated the angular CLI

    npm install -g @angular/cli