-
Notifications
You must be signed in to change notification settings - Fork 61
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
Argument of type '"cart"' is not assignable to parameter of type 'never' #51
Comments
Hi, I need some more information.
|
Hi @dai-shi This is the relative code:
|
It looks good... |
I have found the lines in my code that are causing the issue.
If I remove this code from my reducer then the errors go away |
@dai-shi yep sorry about that, reworked my code and the error is gone 👻 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a NextJs project with typescript. I'm seeing the above error with useGlobalState and reducer style.
const [cart] = useGlobalState("cart") <-- Argument of type '"cart"' is not assignable to parameter of type 'never'
But I'm not sure what the problem is at it looks the same as the examples. Any ideas?
The text was updated successfully, but these errors were encountered: