I am an absolute beginner in Angular and I am finding some problem creating a component using the Angular CLI into an Angular project on which I am working on.
I manually created a subfolder (into my Angular project) in which I want create my new component, something like:
C:\Users\myusre\Source\Workspaces\MySolution\MyProject\WebProject\app\maildetail\maildetail-sidebar
I access to this folder into my shell and I execute this statment:
ng generate component main-detail-protocollo-sidebar
so I expect to obtain a new directory (into the previous directory) for my new component.
But I am obtaining this error message:
The generate command requires to be run in an Angular project, but a project definition could not be found.
Why? What is wrong? What am I missing? How can I create a brand new component directly into the previous folder?