title: An unhandled exception occurred: Project does not exist. Angular SSR
body: <p>I implemented Angular universal in my angular project but after that whenever I am building the project I am getting below error</p>
  <p>[error] Error: Project does not exist.
  at WorkspaceNodeModulesArchitectHost.findProjectTarget (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:122:19)
  at WorkspaceNodeModulesArchitectHost.getBuilderNameForTarget (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:23:39)
  at RunCommand.runSingleTarget (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/models/architect-command.js:174:55)
  at RunCommand.runArchitectTarget (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/models/architect-command.js:217:35)
  at RunCommand.run (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/commands/run-impl.js:14:25)
  at RunCommand.validateAndRun (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/models/command.js:134:39)
  at async Object.runCommand (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/models/command-runner.js:201:24)
  at async default_1 (/home/atif/Desktop/Code/BlogFE/blogui/BlogApp/node_modules/@angular/cli/lib/cli/index.js:62:31)</p>
  <p>angular.json 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;blogapp&quot;: {
        &quot;projectType&quot;: &quot;application&quot;,
        &quot;schematics&quot;: {
          &quot;@schematics/angular:component&quot;: {
            &quot;style&quot;: &quot;scss&quot;
          }
        },
        &quot;root&quot;: &quot;&quot;,
        &quot;sourceRoot&quot;: &quot;src&quot;,
        &quot;prefix&quot;: &quot;app&quot;,
        &quot;architect&quot;: {
          &quot;build&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:browser&quot;,
            &quot;options&quot;: {
              &quot;outputPath&quot;: &quot;dist/browser&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;tsconfig.app.json&quot;,
              &quot;aot&quot;: true,
              &quot;assets&quot;: [
                &quot;src/favicon.ico&quot;,
                &quot;src/assets&quot;,
                &quot;src/sitemap.xml&quot;,
                &quot;src/robots.txt&quot;
              ],
              &quot;styles&quot;: [
                &quot;node_modules/bootstrap/dist/css/bootstrap.min.css&quot;,
                &quot;node_modules/font-awesome/css/font-awesome.min.css&quot;,
                &quot;src/styles.scss&quot;
              ],
              &quot;scripts&quot;: [
                &quot;./node_modules/jquery/dist/jquery.min.js&quot;,
                &quot;node_modules/bootstrap/dist/js/bootstrap.min.js&quot;
              ]
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;fileReplacements&quot;: [
                  {
                    &quot;replace&quot;: &quot;src/environments/environment.ts&quot;,
                    &quot;with&quot;: &quot;src/environments/environment.prod.ts&quot;
                  }
                ],
                &quot;optimization&quot;: true,
                &quot;outputHashing&quot;: &quot;all&quot;,
                &quot;sourceMap&quot;: false,
                &quot;extractCss&quot;: true,
                &quot;namedChunks&quot;: false,
                &quot;extractLicenses&quot;: true,
                &quot;vendorChunk&quot;: false,
                &quot;buildOptimizer&quot;: true,
                &quot;budgets&quot;: [
                  {
                    &quot;type&quot;: &quot;initial&quot;,
                    &quot;maximumWarning&quot;: &quot;2mb&quot;,
                    &quot;maximumError&quot;: &quot;10mb&quot;
                  },
                  {
                    &quot;type&quot;: &quot;anyComponentStyle&quot;,
                    &quot;maximumWarning&quot;: &quot;6kb&quot;,
                    &quot;maximumError&quot;: &quot;10kb&quot;
                  }
                ]
              }
            }
          },
          &quot;serve&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:dev-server&quot;,
            &quot;options&quot;: {
              &quot;browserTarget&quot;: &quot;blogapp:build&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;browserTarget&quot;: &quot;blogapp: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;blogapp: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;tsconfig.spec.json&quot;,
              &quot;karmaConfig&quot;: &quot;karma.conf.js&quot;,
              &quot;assets&quot;: [
                &quot;src/favicon.ico&quot;,
                &quot;src/assets&quot;,
                &quot;src/sitemap.xml&quot;,
                &quot;src/robots.txt&quot;
              ],
              &quot;styles&quot;: [
                &quot;src/styles.scss&quot;
              ],
              &quot;scripts&quot;: []
            }
          },
          &quot;lint&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:tslint&quot;,
            &quot;options&quot;: {
              &quot;tsConfig&quot;: [
                &quot;tsconfig.app.json&quot;,
                &quot;tsconfig.spec.json&quot;,
                &quot;e2e/tsconfig.json&quot;
              ],
              &quot;exclude&quot;: [
                &quot;**/node_modules/**&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;blogapp:serve&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;devServerTarget&quot;: &quot;blogapp:serve:production&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.server.ts&quot;,
              &quot;tsConfig&quot;: &quot;tsconfig.server.json&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;outputHashing&quot;: &quot;media&quot;,
                &quot;fileReplacements&quot;: [
                  {
                    &quot;replace&quot;: &quot;src/environments/environment.ts&quot;,
                    &quot;with&quot;: &quot;src/environments/environment.prod.ts&quot;
                  }
                ],
                &quot;sourceMap&quot;: false,
                &quot;optimization&quot;: true
              },
              &quot;serverless&quot;: {
                &quot;fileReplacements&quot;: [
                  {
                    &quot;replace&quot;: &quot;src/environments/environment.ts&quot;,
                    &quot;with&quot;: &quot;src/environments/environment.serverless.ts&quot;
                  }
                ]
              }
            }
          }
        }
      }
    },
    &quot;defaultProject&quot;: &quot;blogapp&quot;
  }
  </code></pre>
  <p>package.json file</p>
  <pre><code>{
    &quot;name&quot;: &quot;blogapp&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;,
      &quot;compile:server&quot;: &quot;webpack --config webpack.server.config.js --progress --colors&quot;,
      &quot;serve:ssr&quot;: &quot;node dist/server&quot;,
      &quot;build:ssr&quot;: &quot;ng build --prod &amp;&amp; ng run universal-website:server:production &amp;&amp; npm run compile:server&quot;,
      &quot;build:client-and-server-bundles&quot;: &quot;ng build --prod &amp;&amp; ng run blogapp:server:production --bundleDependencies all&quot;,
      &quot;server&quot;: &quot;node local.js&quot;,
      &quot;build:prod&quot;: &quot;npm run build:browser:prod &amp;&amp; npm run build:server:prod&quot;,
      &quot;serve:prerender&quot;: &quot;node static.js&quot;,
      &quot;build:prerender&quot;: &quot;npm run build:prod &amp;&amp; node dist/prerender.js&quot;,
      &quot;build:browser:prod&quot;: &quot;ng build --prod&quot;,
      &quot;build:browser:serverless&quot;: &quot;ng build --prod --base-href /production/&quot;,
      &quot;build:serverless&quot;: &quot;npm run build:browser:serverless &amp;&amp; npm run build:server:serverless&quot;,
      &quot;build:prod:deploy&quot;: &quot;npm run build:prod &amp;&amp; npm run deploy&quot;,
      &quot;build:serverless:deploy&quot;: &quot;npm run build:serverless &amp;&amp; npm run deploy&quot;,
      &quot;deploy&quot;: &quot;serverless deploy&quot;,
      &quot;build:server:prod&quot;: &quot;ng run universal-website:server:production &amp;&amp; npm run compile:server&quot;,
      &quot;build:server:serverless&quot;: &quot;ng run universal-website:server:serverless &amp;&amp; npm run compile:server&quot;,
      &quot;terminate&quot;: &quot;serverless remove&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular-devkit/schematics&quot;: &quot;^9.1.0&quot;,
      &quot;@angular/animations&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/common&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/compiler&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/core&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/forms&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/platform-server&quot;: &quot;~9.1.6&quot;,
      &quot;@angular/router&quot;: &quot;~9.1.6&quot;,
      &quot;@ng-toolkit/serverless&quot;: &quot;^8.1.0&quot;,
      &quot;@ng-toolkit/universal&quot;: &quot;^8.0.3&quot;,
      &quot;@nguniversal/common&quot;: &quot;8.1.0&quot;,
      &quot;@nguniversal/express-engine&quot;: &quot;v8.2.6&quot;,
      &quot;@nguniversal/module-map-ngfactory-loader&quot;: &quot;v8.2.6&quot;,
      &quot;@schematics/angular&quot;: &quot;^9.1.0&quot;,
      &quot;@syncfusion/ej2-angular-richtexteditor&quot;: &quot;^18.2.56&quot;,
      &quot;@vendia/serverless-express&quot;: &quot;^4.3.4&quot;,
      &quot;aws-sdk&quot;: &quot;^2.797.0&quot;,
      &quot;aws-serverless-express&quot;: &quot;^3.3.6&quot;,
      &quot;bootstrap&quot;: &quot;^3.3.7&quot;,
      &quot;cors&quot;: &quot;^2.8.5&quot;,
      &quot;domino&quot;: &quot;^2.1.3&quot;,
      &quot;express&quot;: &quot;^4.15.2&quot;,
      &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
      &quot;jquery&quot;: &quot;^3.5.1&quot;,
      &quot;ng-lazyload-image&quot;: &quot;^9.1.0&quot;,
      &quot;ngx-spinner&quot;: &quot;^10.0.1&quot;,
      &quot;rxjs&quot;: &quot;~6.5.4&quot;,
      &quot;tslib&quot;: &quot;^1.10.0&quot;,
      &quot;web-animations-js&quot;: &quot;^2.3.2&quot;,
      &quot;zone.js&quot;: &quot;~0.10.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.901.15&quot;,
      &quot;@angular/cli&quot;: &quot;^9.1.6&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~9.1.6&quot;,
      &quot;@types/express&quot;: &quot;^4.17.0&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.5.0&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^12.19.6&quot;,
      &quot;codelyzer&quot;: &quot;^5.1.2&quot;,
      &quot;jasmine-core&quot;: &quot;~3.5.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
      &quot;karma&quot;: &quot;~5.0.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.1.0&quot;,
      &quot;karma-jasmine&quot;: &quot;~3.0.1&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.4.2&quot;,
      &quot;opencollective&quot;: &quot;^1.0.3&quot;,
      &quot;protractor&quot;: &quot;~5.4.3&quot;,
      &quot;serverless&quot;: &quot;^2.29.0&quot;,
      &quot;serverless-api-compression&quot;: &quot;^1.0.1&quot;,
      &quot;serverless-apigw-binary&quot;: &quot;^0.4.4&quot;,
      &quot;ts-loader&quot;: &quot;^6.2.1&quot;,
      &quot;ts-node&quot;: &quot;~8.3.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;~3.8.3&quot;,
      &quot;webpack-cli&quot;: &quot;^3.3.10&quot;
    }
  }
  
  
  </code></pre>
  <p>Basically I get this error whenever I run npm run build:ssr</p>