Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error TS2420: Class 'NgRedux<RootState>' incorrectly implements interface 'ObservableStore<RootState>'

Tags:

When I am going to compile or build angular application on linux (ubuntu) I am getting this issue:

For Compilation: ng serve

For building: ng build --base-href=/dist/

Error:

ERROR in node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts(10,31): error TS2420: Class 'NgRedux' incorrectly implements interface 'ObservableStore'. Property '[Symbol.observable]' is missing in type 'NgRedux' but required in type 'ObservableStore'.

These above bash commands working well in my windows environment with same application, when I tried to run or build on Ubuntu it give me this error. This look like redux issue I have downgraded redux version But it did’t worked for me, I have also tried each and every combination but this issue is not resolved on Ubuntu.

Environment on Linux(Ubuntu) Machine

Node Version: v8.10.0

NPM Version: 3.5.2

Ng version: 7.0.3

Environment on Windows Machine

Node Version: v8.11.3

NPM Version: 5.6.0

Ng version: 7.0.3

like image 782
Natesh Avatar asked Jul 15 '19 07:07

Natesh


1 Answers

I had a similar issue, and the following combination worked for me:

angular cli v9.1.6, redux v4.0.1, angular-redux/store V9

so maybe this?

npm install --save [email protected]

npm install --save @angular-redux/store@^9

like image 173
Josiah Perisho Avatar answered Oct 20 '22 03:10

Josiah Perisho