angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
308 stars 55 forks source link

BUG: Can't create a Feature #100

Closed adrian-goe closed 2 years ago

adrian-goe commented 2 years ago

I have created a domain with ng g @angular-architects/ddd:domain demo without creating an extra app. The Domain was created in the lib directory.

Now I want to add a feature with ng g @angular-architects/ddd:feature demo --domain demo

Expected

A new lib with the feature in the dir libs/demo

Current behavior

There is an error in the Console Specified app demo does not exist: apps/demo/src/app/app.module.ts expected!

I'm not sure why it's trying to find an app.

adrian-goe commented 2 years ago

I use

"@angular-architects/ddd": "2.0.0",
"@angular/common": "~13.1.0",
"@nrwl/cli": "13.3.12",
manfredsteyer commented 2 years ago

Can you pls try to add the --noApp switch when creating a feature?

adrian-goe commented 2 years ago

it returns

$ ng g @angular-architects/ddd:feature demo --domain demo --noApp
(0 , utils_1.insertNgModuleProperty) is not a function
AsimNet commented 2 years ago

yarn nx generate @angular-architects/ddd:feature --name=audio-player --app=myApp --domain=player --entity=AudioPlayer --ngrx --no-interactive

same here

mohammedmatar commented 2 years ago

Nice to see you all, i am facing the exact issue and i was able to generate the feature library after updating my nx monorepo to the latest version. Hope this works for you !

adrian-goe commented 2 years ago

thx @mohammedmatar this worked also for me. I close it for now, feel free to reopen this.