Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the cli command for generating a resolver throw exception?

As you can see in the cli documentation, there is a command for generating a resolver. However when I try to use it from my VS Code terminal, it throws an exception -

An unhandled exception occurred: Schematic "resolver" not found in collection "@schematics/angular".

Am I doing something wrong? Anyone used it?

like image 821
atiyar Avatar asked Sep 23 '26 19:09

atiyar


1 Answers

I assume you are not using the most recent version of the angular cli. The resolver schematic was only added recently (this year's October), see this commit.

It should work fine with the current version 11.0.1. You can verify the available schematic commands when you run ng generate --help.

like image 93
code-gorilla Avatar answered Sep 25 '26 18:09

code-gorilla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!