Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typings error in configureStore #126

Closed
zernie opened this issue Mar 23, 2019 · 2 comments
Closed

Typings error in configureStore #126

zernie opened this issue Mar 23, 2019 · 2 comments

Comments

@zernie
Copy link

zernie commented Mar 23, 2019

I receive the error below after installing redux-starter-kit@0.4.3 with TypeScript 3.3. It appers even if don't make any imports of redux-starter-kit.

.../node_modules/redux-starter-kit/src/configureStore.ts
(149,3): Type 'Store<S & {}, AnyAction>' is not assignable to type 'EnhancedStore<S, A>'.
  Types of property 'replaceReducer' are incompatible.
    Type '(nextReducer: Reducer<S & {}, AnyAction>) => void' is not assignable to type '(nextReducer: Reducer<S, A>) => void'.
      Types of parameters 'nextReducer' and 'nextReducer' are incompatible.
        Types of parameters 'action' and 'action' are incompatible.
          Type 'AnyAction' is not assignable to type 'A'.

tsconfig.json:

{
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "build/dist",
    "module": "esnext",
    "target": "es5",
    "lib": ["es6", "dom"],
    "sourceMap": true,
    "allowJs": true,
    "jsx": "react",
    "moduleResolution": "node",
    "rootDir": "src",
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "suppressImplicitAnyIndexErrors": true,
    "noUnusedLocals": false ,
    "skipLibCheck": true
  },
  "exclude": [
    "node_modules",
    "build",
    "scripts",
    "acceptance-tests",
    "webpack",
    "jest",
    "src/setupTests.ts"
  ]
}
@markerikson
Copy link
Collaborator

That sounds like some kind of a build configuration issue. Closing this for now. If you can come up with a project that reproduces the problem, leave a comment here and someone might be able to look at it.

@BlackHole1
Copy link

After upgrading the redux-starter-kit@0.5 version, there is no problem. It seems that this PR is fixed: 4da8c59

markerikson pushed a commit that referenced this issue Apr 20, 2021
markerikson pushed a commit that referenced this issue Apr 20, 2021
* docs: update comparison (#103)

Adds "declarative" as an option for API definition for React Query. With v3, you can now configure all of your queries and mutations up front before calling them.

* Add algolia config (#126)

* use authorization instead of authentication (#128)

* run tests on PRs

* Link directly to #redux on Reactiflux (#127)

Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
Co-authored-by: Nick McCurdy <nick@nickmccurdy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants