-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
I receive the error below after installing [email protected]
with TypeScript 3.3. It appers even if don't make any import
s 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"
]
}
tinleym, BlackHole1 and rlesniak
Metadata
Metadata
Assignees
Labels
No labels