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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With