Closed ashutosh15aashu closed 5 years ago
It may be an issue with the version of Angular CLI you are using. See if the following is relevant? https://github.com/angular/angular-cli/issues/11688
@jayhamilton Already, i checked Angular cli version things but, it is not occurring due to version issue. You are using almost separate module for all component. When i'm trying to generate the component it is not able to get the module path or something related to that. I am using the command( ng generate component sample_component ) to generate the sample component. Please, check the screenshots attached below and give any better suggestion. Thanks-
I got and fixed that. I have to pass module name with commands.
ng g component sample_component --module=app.module
-Thanks.
Hey,
I was trying to create sample new component after installing npm and successful executing the app but, not able to create new component.
I was getting one message: "Two or more projects are using identical roots. Unable to determine project using current working directory. Using default work space project instead. More than one module matches. Use skip-import option to skip importing the component into the closest module."
Please help me on this: -how to create new components? -try to attach any documentation(How to modify the application) link, if it is there.
Thanks- Ashutosh kumar.