0

component

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.

Ajay Singh
  • 150
  • 2
  • 14

2 Answers2

0

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

Eugene Porodko
  • 186
  • 1
  • 7
0

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:

  1. Uninstall Angular
  2. Install Angular
  3. Remember if the packages are installed (NPM)
  4. ng generate component product-detail or ng g c product-detail
  5. 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)