How to fix Error: Schematic "feature" not found in collection "@schematics/angular"


angular ngrx

I ran ng generate feature FeatureName and got this error:

Error: Schematic "feature" not found in collection "@schematics/angular".

To resolve this issue I had to add @ngrx/schematics again to the Angular project. I ran the following in the project folder:

ng add @ngrx/schematics

I was asked about “using @ngrx/schematics as a default collection” and provided a positive answer:

ngrx-default-collection

After this ng generate feature FeatureName was started to work:

ngrx-successful-generate-command

comments powered by Disqus