store
store copied to clipboard
error TS2420: Class 'NgRedux<RootState>' incorrectly implements interface 'O bservableStore<RootState>'.
This is a...
- [x] bug report
- [ ] usage question
What toolchain are you using for transpilation/bundling?
- [x] @angular/cli
Environment
NodeJS Version: 9.8 Typescript Version: Angular Version: 5 @angular-redux/store version: 7.1.1 @angular/cli version: (if applicable) OS: Windwows
Link to repo showing the issus
(optional, but helps a lot)
Expected Behaviour:
Actual Behaviour:
Stack Trace/Error Message:
ERROR in node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts(10,31): error TS2420: Class 'NgRedux<RootState>' incorrectly implements interface 'O
bservableStore<RootState>'.
Types of property 'dispatch' are incompatible.
Type 'Dispatch<RootState>' is not assignable to type 'Dispatch<AnyAction>'.
Type 'RootState' is not assignable to type 'AnyAction'.
node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts(37,33): error TS2344: Type 'RootState' does not satisfy the constraint 'Action
Additional Notes:
(optional)
Are you using redux v4 by any chance? They updated their typedefs. If so you can try either:
Updating to Anguar 6, RxJS 6, and @angular-redux/store 9,
or
Downgrading Redux to 3.7.1
Are you using redux v4 by any chance? They updated their typedefs. If so you can try either:
Updating to Anguar 6, RxJS 6, and @angular-redux/store 9,
or
Downgrading Redux to 3.7.1
How to roll back to version 3.7.1?