You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having trouble compiling TypeScript in my project because of this error:
ERROR in /Users/.../.../.../node_modules/connected-react-router/index.d.ts(96,7):
TS2314: Generic type 'Reducer' requires 1 type argument(s).
The type is described as:
export function connectRouter(history: History)
: Reducer<RouterState, LocationChangeAction>
If I manually remove LocationChangeAction in the type file the application compiles and seemingly works fine.
Is there something I'm doing wrong here?
NOTE: Previously using "react-router-redux" but here because it recommends this library.
Here are some relevant dependencies from package.json:
"connected-react-router": "^6.4.0",
"react-redux": "^7.1.0",
"react-router-dom": "5.0.1",
"react": "16.8.6"
I appreciate any help/advice. Thanks!
The text was updated successfully, but these errors were encountered:
Having trouble compiling TypeScript in my project because of this error:
The type is described as:
If I manually remove
LocationChangeAction
in the type file the application compiles and seemingly works fine.Is there something I'm doing wrong here?
NOTE: Previously using "react-router-redux" but here because it recommends this library.
Here are some relevant dependencies from
package.json
:"connected-react-router": "^6.4.0",
"react-redux": "^7.1.0",
"react-router-dom": "5.0.1",
"react": "16.8.6"
I appreciate any help/advice. Thanks!
The text was updated successfully, but these errors were encountered: