-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TS2344: Type 'unknown' does not satisfy the constraint '{}' #1596
Comments
I've updated the bug to reflect the error that this (new) extension gives me. |
Workaround (or solution?): After installing the library, in |
Note that you shouldn't be using either the core |
Right. Still. I think this TypeScript error happens irrespective of what APIs I call, and just because of the mere existence of (I'm lazy about such a migration... Despite the claim "This is a one-time step, and all of the existing reducers and middleware will continue to work as-is." I ran into TypeScript errors last time and decided to postpone this.) |
@Philipp91 fwiw, that should go away with RTK and I'd also recommend checking to see if you somehow have multiple copies of |
Okay thanks, I've managed to migrate with reasonable effort and I can confirm that the issue doesn't show up there. As you suspected, it doesn't install the redux-devtools module at all then. (No multiple copies. I believe the error comes from a misalignment of redux-devtools code with the updated redux code I linked in the opening post.) |
Using:
I get:
Maybe this was broken by reduxjs/redux@5a084a6:
The text was updated successfully, but these errors were encountered: