Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Aedrian Escultura
2,231 PointsI am running the command with the --module=app option but it does not update app.module.ts. Any ideas why?
I run this:
ng generate service test-content --module=app --dry-run
And get this:
CREATE src/app/service/test-content.service.spec.ts (359 bytes) CREATE src/app/service/test-content.service.ts (140 bytes)
NOTE: The "dryRun" flag means no changes were made.
1 Answer

Aedrian Escultura
2,231 PointsThanks. I also saw that link. Indeed it has been deprecated as the documentation does not mention --module anymore.
Isaac Escobar
1,159 PointsIsaac Escobar
1,159 PointsI had the same issue. Did a bit of research and found this link. Looks like --module is no longer supported when generating a new service.
https://github.com/nrwl/nx/issues/219#issuecomment-392793167