Skip to content

NgRedux<RootState> #564

Open
Open

Description

@v-miguez

This is a...

  • feature request
  • bug report
  • usage question

What toolchain are you using for transpilation/bundling?

  • @angular/cli
  • Custom @ngTools/webpack
  • Raw ngc
  • SystemJS
  • Rollup
  • Other

Environment

NodeJS Version:
Typescript Version:
Angular Version:
@angular-redux/store version:
@angular/cli version: (if applicable)
OS:

Link to repo showing the issus

(optional, but helps a lot)

Expected Behaviour:

Actual Behaviour:

Stack Trace/Error Message:

Additional Notes:

(optional)

Activity

  1. sachin27sharma commented on Jul 11, 2019

    @sachin27sharma

    Hi,

    Am getting below error when i upgraded to angular 7.1.1, using "@angular-redux/store": "^10.0.0",

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

    These are the versions in my package.json -
    "@angular-redux/store": "^10.0.0",
    "@angular/core": "^7.1.1",
    "redux": "^4.0.4",
    "rxjs": "^6.3.3",

    peerDepencies for @angular-redux/store@10.0.0 are this - So my above packages are meeting the criteria but still getting the error.

    npm view @angular-redux/store@10.0.0 peerDependencies
    { '@angular/core': '^7.0.0', redux: '^4.0.0', rxjs: '^6.0.0' }

  2. MartinJHammer commented on Jul 24, 2019

    @MartinJHammer

    @sachin27sharma "@angular-redux/store": "^10.0.0", and "redux": "^4.0.4", doesn't play well together. Downgrade redux to "redux": "^4.0.1" and the error should dissappear.

  3. MiHawkStackOverFlow commented on Aug 11, 2019

    @MiHawkStackOverFlow

    I am facing the same issue when I tried to upgrade from Angular7 to Angular8.

    ../node_modules/@angular-redux/store/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'.

    My package json is as follows:-

    "dependencies": {
    "@angular-redux/store": "^9.0.0",
    "@angular/animations": "^8.2.0",
    "@angular/cdk": "^8.1.2",
    "@angular/common": "^8.2.0",
    "@angular/compiler": "^8.2.0",
    "@angular/core": "^8.2.0",
    "redux": "^4.0.4",
    "@types/redux": "3.6.0"
    }

    @MartinJHammer When i tried to use "@angular-redux/store": "^10.0.0", and "redux": "^4.0.1". I get one more error

    ERROR in ../node_modules/@angular-redux/store/components/dev-tools.d.ts:3:33 - error TS2307: Cannot find module 'redux-devtools-extension'.

    3 import { EnhancerOptions } from 'redux-devtools-extension';

    With "@angular-redux/store": "^9.0.0", and "redux": "^4.0.1", I get only one error which is
    Property '[Symbol.observable]' is missing in type 'NgRedux' but required in type 'ObservableStore'.

  4. MartinJHammer commented on Aug 12, 2019

    @MartinJHammer

    @MiHawkStackOverFlow Hmmm... Hard to say what is wrong then. Maybe your redux configuration is off? Maybe you need to use a different rxjs version? Or maybe try "Hard" dep versions e.g. ""redux": "4.01" instead of "redux": "^4.0.1". With the '^' you risk a higher version being installed than you expected. Try checking your package-lock.json to see exactly what has been installed. It's a long file, so I recommend using search in the file.

  5. sachin27sharma commented on Aug 13, 2019

    @sachin27sharma

    Thanks Martin. Will give this a try.

  6. houyaowei commented on Aug 29, 2019

    @houyaowei

    @sachin27sharma "@angular-redux/store": "^10.0.0", and "redux": "^4.0.4", doesn't play well together. Downgrade redux to "redux": "^4.0.1" and the error should dissappear.

    thx. the error dissappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions