Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Can't create a Feature #100

Closed
adrian-goe opened this issue Dec 29, 2021 · 6 comments
Closed

BUG: Can't create a Feature #100

adrian-goe opened this issue Dec 29, 2021 · 6 comments

Comments

@adrian-goe
Copy link

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
Copy link
Author

I use

"@angular-architects/ddd": "2.0.0",
"@angular/common": "~13.1.0",
"@nrwl/cli": "13.3.12",

@manfredsteyer
Copy link
Contributor

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

@adrian-goe
Copy link
Author

it returns

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

@AsimNet
Copy link
Contributor

AsimNet commented Jan 9, 2022

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

same here

@mohammedmatar
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants