angular-redux / platform

[Unmaintained] Redux bindings and utilities for Angular
MIT License
140 stars 88 forks source link

angular-redux/store error with won't compile with rxjs 6.4.0/redux 4.0.4 #101

Open rmorrise opened 4 years ago

rmorrise commented 4 years ago

This is a...

What toolchain are you using for transpilation/bundling?

Environment

NodeJS Version: 12.10.0 Typescript Version: 3.5.3 Angular Version: 8.2.7 @angular-redux/store version: 10.0.0 @angular/cli version: (if applicable) 8.3.5 OS: Win10 Enterprise x64

Expected Behaviour:

Should compile normally.

Actual Behaviour:

Error running ng test --source-map false

Stack Trace/Error Message:

ERROR in node_modules/@angular-redux/store/components/ng-redux.d.ts:10:31 - error TS2420: Class 'NgRedux<RootState>' incorrectly implements interface 'ObservableStore<RootSta
te>'.
  Property '[Symbol.observable]' is missing in type 'NgRedux<RootState>' but required in type 'ObservableStore<RootState>'.

10 export declare abstract class NgRedux<RootState> implements ObservableStore<RootState> {
                                 ~~~~~~~

  node_modules/redux/index.d.ts:247:3
    247   [Symbol.observable](): Observable<S>
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    '[Symbol.observable]' is declared here.

Additional Notes:

"redux": "4.0.4",
"rxjs": "~6.4.0"
LukasKlement commented 4 years ago

You need to downgrade to redux 4.0.1 to compile your project, see the comments here or here.