You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minimal reproduction of the bug/regression with instructions
Create a fresh new NG14 project, then add the ngrx schematics with defaultCollection:
ng new foo --routing --style=css
cd foo
ng add @ngrx/schematics --default-collection
Output:
➜ foo git:(main) ng add @ngrx/schematics --default-collection
ℹ Using package manager: npm
✔ Found compatible package version: @ngrx/[email protected].
✔ Package information loaded.
The package @ngrx/[email protected] will be installed and executed.
Would you like to proceed? Yes
✔ Packages successfully installed.
schematicCollections is not defined in the global cli options
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
Uh oh!
There was an error while loading. Please reload this page.
Minimal reproduction of the bug/regression with instructions
When installing the NgRx schematics with
defaultCollection
set, adding toschematicCollections
fails when the section is missing inangular.json
.Expected:
The script should create the section automatically if it's not there yet.
@angular-eslint/schematics
implements it like this.Minimal reproduction of the bug/regression with instructions
Create a fresh new NG14 project, then add the ngrx schematics with
defaultCollection
:Output:
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
Angular: 14.0.3
Node: 14.19.3
NgRx: 14.0.0
Other information
This has been discussed here:
However, a new Angular 14 project does not have the
schematicCollections
section by default.I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: