Open kyyash opened 6 years ago
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?
This is a...
What toolchain are you using for transpilation/bundling?
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' incorrectly implements interface 'O
bservableStore'.
Types of property 'dispatch' are incompatible.
Type 'Dispatch' is not assignable to type 'Dispatch'.
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'.
node_modules/@angular-redux/store/lib/src/components/root-store.d.ts(18,24): error TS2344: Type 'RootState' does not satisfy the constraint 'Action'.
node_modules/redux-devtools-extension/index.d.ts(1,32): error TS2305: Module '"C:/Codebase/sbpm/branches/SBP_POC/FORM-FLOW/node_modules/redux/index"' has no exp
orted member 'GenericStoreEnhancer'.
Additional Notes:
(optional)