I\'m starting to use angular-cli and I\'ve already read a lot to find an answer about what I want to do...no success, so I came here.
Is there a way to create a componen
I ran into this issue today while scaffolding an Angular 9 application. I got the "module does not exist error" whenever I added the .module.ts
or .module
to the module name. The cli only needs the name of the module with no extension. Assuming I had a module name: brands.module.ts
, the command I used was
ng g c path/to/my/components/brands-component -m brands --dry-run
remove the --dry-run
once you've confirmed the file structure is correct.