问题
执行ng generate store auth/Auth --module
报错:An unhandled exception occurred: Schematic “store” not found in collection “@schematics/angular”.
解决方案
ng add @ngrx/schematics@latest
This will update your angular.json file this way"cli": { "defaultCollection": "@ngrx/schematics" }
- Now you may re-run the previous schematics
ng generate store admin/Admin -m admin.module.ts
原因
Schematic “store” not found in collection “@schematics/angular”
Installation