---
title: "Discussion on \"NestJS Angular Universal in an Nx Workspace\" | Hashnode"
description: "Discussion on \"NestJS Angular Universal in an Nx Workspace\". Not so long ago I started using Angular Universal in all my Angular projects because of its benefits in SEO and performance on low-end devices and slow connections. I've been using Nx since a while and one day I started an Angular application that wo..."
url: "https://hashnode.com/posts/nestjs-angular-universal-in-an-nx-workspace/6030bc20f51caf4448561a39"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [NestJS Angular Universal in an Nx Workspace](https://samosunaz.hashnode.dev/nestjs-angular-universal-in-an-nx-workspace?utm_source=hashnode&utm_medium=feed)

Not so long ago I started using Angular Universal in all my Angular projects because of its benefits in SEO and performance on low-end devices and slow connections. I've been using Nx since a while and one day I started an Angular application that wo...

Feb 20, 2021 · 6 min read · samosunaz.hashnode.dev  
Read the article

-   [#angularjs](https://hashnode.com/tag/angularjs)
-   [#universal](https://hashnode.com/tag/universal)
-   [#nest](https://hashnode.com/tag/nest)

## Written by

[Samuel Osuna](https://hashnode.com/@samosunaz)

@samosunaz

  
[View profile](https://hashnode.com/@samosunaz)

## Responses 1

Markdown supported · ⌘↵ to post

[Max](https://hashnode.com/@maxmyers)

[Sep 9, 2021](https://hashnode.com/posts/nestjs-angular-universal-in-an-nx-workspace/6030bc20f51caf4448561a39/comment/6139b4ae2c9ec22314f4af6f)

Thanks for the great and simple to understand guide! I noticed when I am trying to build either projects, it gives:

```
$ nx run api:build 

Could not execute api:build because it has a circular dependency
api:build --> dashboard:build --> api:build
```

and

```
$ nx run dashboard:build 

Could not execute dashboard:build because it has a circular dependency
dashboard:build:production --> api:build:production --> dashboard:build:production
```

_(Where **dashboard** is my frontend and **api** is backend)_

![Screen Shot 2021-09-09 at 2.17.11 pm.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631171841270/8DBBFng8b.png)

What should be the command to build and ship to production?

Thank you

[Damien S](https://hashnode.com/@damiens)

[Oct 25, 2021](https://hashnode.com/posts/nestjs-angular-universal-in-an-nx-workspace/6030bc20f51caf4448561a39/comment/6139b4ae2c9ec22314f4af6f#reply-617708860f452c1cd94fd4ce)

Hi Max,

Did you ever get this resolved? I'm running into the same issue.
