title: An unhandled exception occurred: Configuration 'dev' is not set in the workspace
body: <p>I started to publish my Angular app. But I can't fix this error. I deployed in Azure. Add this looking easy. I think that the problem is in <code>angular.json</code>. Firstly I tried to update every dependency in <code>package.json</code></p>
  <p>Where is the wrong in this config file?</p>
  <pre><code>    {
    &quot;$schema&quot;: &quot;./node_modules/@angular/cli/lib/config/schema.json&quot;,
    &quot;version&quot;: 1,
    &quot;newProjectRoot&quot;: &quot;projects&quot;,
    &quot;projects&quot;: {
      &quot;ODZ.Web&quot;: {
        &quot;root&quot;: &quot;&quot;,
        &quot;sourceRoot&quot;: &quot;src&quot;,
        &quot;projectType&quot;: &quot;application&quot;,
        &quot;prefix&quot;: &quot;app&quot;,
        &quot;schematics&quot;: {},
        &quot;architect&quot;: {
          &quot;build&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:browser&quot;,
            &quot;options&quot;: {
              &quot;progress&quot;: false,
              &quot;extractCss&quot;: false,
              &quot;outputPath&quot;: &quot;dist&quot;,
              &quot;index&quot;: &quot;src/index.html&quot;,
              &quot;main&quot;: &quot;src/main.ts&quot;,
              &quot;polyfills&quot;: &quot;src/polyfills.ts&quot;,
              &quot;tsConfig&quot;: &quot;src/tsconfig.app.json&quot;,
              &quot;assets&quot;: [
                &quot;src/assets&quot;
              ],
              &quot;styles&quot;: [
                &quot;./node_modules/@angular/material/prebuilt-themes/indigo-pink.css&quot;,
                &quot;node_modules/bootstrap/dist/css/bootstrap.min.css&quot;,
                &quot;node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss&quot;,
                &quot;node_modules/@fortawesome/fontawesome-free/scss/solid.scss&quot;,
                &quot;node_modules/@fortawesome/fontawesome-free/scss/regular.scss&quot;,
                &quot;node_modules/@fortawesome/fontawesome-free/scss/brands.scss&quot;,
                &quot;node_modules/angular-bootstrap-md/assets/scss/bootstrap/bootstrap.scss&quot;,
                &quot;node_modules/angular-bootstrap-md/assets/scss/mdb.scss&quot;,
                &quot;node_modules/animate.css/animate.css&quot;,
                &quot;src/styles.css&quot;
              ],
              &quot;scripts&quot;: [
                &quot;node_modules/chart.js/dist/Chart.js&quot;,
                &quot;node_modules/hammerjs/hammer.min.js&quot;
              ]
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;optimization&quot;: true,
                &quot;outputHashing&quot;: &quot;all&quot;,
                &quot;sourceMap&quot;: false,
                &quot;extractCss&quot;: true,
                &quot;namedChunks&quot;: false,
                &quot;aot&quot;: true,
                &quot;extractLicenses&quot;: true,
                &quot;vendorChunk&quot;: false,
                &quot;buildOptimizer&quot;: true,
                &quot;fileReplacements&quot;: [
                  {
                    &quot;replace&quot;: &quot;src/environments/environment.ts&quot;,
                    &quot;with&quot;: &quot;src/environments/environment.prod.ts&quot;
                  }
                ]
              }
            }
          },
          &quot;serve&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:dev-server&quot;,
            &quot;options&quot;: {
              &quot;browserTarget&quot;: &quot;ODZ.Web:build&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;browserTarget&quot;: &quot;ODZ.Web:build:production&quot;
              }
            }
          },
          &quot;extract-i18n&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:extract-i18n&quot;,
            &quot;options&quot;: {
              &quot;browserTarget&quot;: &quot;ODZ.Web:build&quot;
            }
          },
          &quot;test&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:karma&quot;,
            &quot;options&quot;: {
              &quot;main&quot;: &quot;src/test.ts&quot;,
              &quot;polyfills&quot;: &quot;src/polyfills.ts&quot;,
              &quot;tsConfig&quot;: &quot;src/tsconfig.spec.json&quot;,
              &quot;karmaConfig&quot;: &quot;src/karma.conf.js&quot;,
              &quot;styles&quot;: [
                &quot;./node_modules/@angular/material/prebuilt-themes/indigo-pink.css&quot;,
                &quot;src/styles.css&quot;
              ],
              &quot;scripts&quot;: [],
              &quot;assets&quot;: [
                &quot;src/assets&quot;
              ]
            }
          },
          &quot;lint&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:tslint&quot;,
            &quot;options&quot;: {
              &quot;tsConfig&quot;: [
                &quot;src/tsconfig.app.json&quot;,
                &quot;src/tsconfig.spec.json&quot;
              ],
              &quot;exclude&quot;: [
                &quot;**/node_modules/**&quot;
              ]
            }
          },
          &quot;server&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:server&quot;,
            &quot;options&quot;: {
              &quot;outputPath&quot;: &quot;dist-server&quot;,
              &quot;main&quot;: &quot;src/main.ts&quot;,
              &quot;tsConfig&quot;: &quot;src/tsconfig.server.json&quot;
            }
          }
        }
      },
      &quot;ODZ.Web-e2e&quot;: {
        &quot;root&quot;: &quot;e2e/&quot;,
        &quot;projectType&quot;: &quot;application&quot;,
        &quot;architect&quot;: {
          &quot;e2e&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:protractor&quot;,
            &quot;options&quot;: {
              &quot;protractorConfig&quot;: &quot;e2e/protractor.conf.js&quot;,
              &quot;devServerTarget&quot;: &quot;ODZ.Web:serve&quot;
            }
          },
          &quot;lint&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:tslint&quot;,
            &quot;options&quot;: {
              &quot;tsConfig&quot;: &quot;e2e/tsconfig.e2e.json&quot;,
              &quot;exclude&quot;: [
                &quot;**/node_modules/**&quot;
              ]
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;devServerTarget&quot;: &quot;ODZ.Web:serve:production&quot;
              }
            }
          }
        }
      }
    },
    &quot;defaultProject&quot;: &quot;ODZ.Web&quot;
  }
  </code></pre>
  <p>I tried to fix this, but when I execute <code>npm build --prod</code>... I changed every dependency in my project, but didn't help. If someone is fixing this error. Bro, pleas help! Thanks!</p>