'Angular ng build does not produce dist folder

I am so frustrated in that I ran ng build but it does not produce dist folder in the project folder. I have no problem with other projects. Strange is that compiler does not give any errors. Could someone please check my project and tell the reason? https://github.com/vugar005/Report Kind Regards



Solution 1:[1]

This does not apply to this specific case, but it might help others experiencing the same problem.

In angular.json:

projects.<project name>.architect.build.configurations.<configuration>.tsconfig

was set to a file that did not exist. Changing this to the correct file fixed the issue in my case.

{
  /* other configuration */
  "projects": {
    /* other configuration */
    "my-library": {
      /* other configuration */
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:ng-packagr",
          "options": {
            "project": "projects/my-library/ng-package.json"
          },
          "configurations": {
            "production": {
              /* this used to be a file that did not exist */
              "tsConfig": "projects/my-library/tsconfig.json"
            },
            "development": {
              /* this used to be a file that did not exist */
              "tsConfig": "projects/my-library/tsconfig.json"
            }
          }
        }
      }
    }
  }
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jan M