I am facing this issue, I am unable to generate the component in angular, I tried deleting node-modules, tried uninstalling angular cli, again installed.
2 Answers
Looks like your terminal recognize command differently? I see you have opened files ng,g,c and product-detail - are they opened/created after invoking this command?
Check here btw How to create a new component in Angular 4 using CLI
7 Comments
It is possible that you have misconfigured something in the project, if you have not made much progress in the project I recommend the following (because it is not normal for you to have this type of problem)
First of all, sometimes VSC bugs, I close and open and everything is fine. If it does not work:
- Uninstall Angular
- Install Angular
- Remember if the packages are installed (NPM)
- ng generate component product-detail or ng g c product-detail
- Sometimes the solution to complex problems requires trying different ways to solve it, I hope this type of quick solution will help you.
remember: Download the extensions for angular, they will help you a lot. (Tell me how it's going)
