I have a angular application in version 10. It is built using workspace which consists of a library and a application. I have installed following dependencies in the angular application.
npm install @ngrx/store
npm install @ngrx/store-devtools
npm install @ngrx/schematics
npm install @ngrx/effects
Below is the code in the package.json (dependencies in angular application)
{
...
@ngrx/component-store: '^11.0.1',
@ngrx/effects : '^11.0.1'
@ngrx/store: '^11.0.1'
@ngrx/store-devtools: '^11.0.1'
...
}
(dev dependency)
{
....
@ngrx/schematics: '^11.0.1'
....
}
Below is the code in the package.json ( peer dependency in library)
{
...
@ngrx/component-store: '^11.0.1',
@ngrx/effects : '^11.0.1'
@ngrx/store: '^11.0.1'
@ngrx/store-devtools: '^11.0.1'
...
}
Now i am try to create a store state inside the library using the below commands
ng g store customerState --statePath=projects/customer/src/lib/store/reducers --module=projects/customer/src/lib/customer.module.ts
I get the below error after the above command
An unhandled exception occured: schematic 'store' not found in collection @schematics/angular'
Any help to resolve the issues