angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
313 stars 56 forks source link

Why type:ui can't depends on another type:ui? #56

Closed wizardnet972 closed 3 years ago

wizardnet972 commented 3 years ago

I create a shared ui library (libs/shared/ui/ui-common) and I want to use it inside domain/ui-xxx but I got an error:

A project tagged with "type:ui" can only depend on libs tagged with "type:domain-logic", "type:util"

The UI inside domain-lib can't depend on shared?

manfredsteyer commented 3 years ago

We don't generate rules for this by default, b/c it might produce cycles.