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

Working with React 16.13.0 #42

Closed
xeusteerapat opened this issue Oct 13, 2020 · 5 comments
Closed

Working with React 16.13.0 #42

xeusteerapat opened this issue Oct 13, 2020 · 5 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@xeusteerapat
Copy link

I ran to the error about Invalid hook call when created the project with React 16.13.0

Error
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

How to solve this issue? or we just need to use React 17.0.0 or the newest?

@prabhuignoto
Copy link
Owner

Please upgrade to 17 and the error should go away. let me know how it pans out.

@prabhuignoto prabhuignoto self-assigned this Oct 13, 2020
@xeusteerapat
Copy link
Author

Yeah, there is no error when I've upgraded to 17.0.0 but kinda curious is any possible to use 16.x.x version?

@prabhuignoto prabhuignoto added the good first issue Good for newcomers label Oct 13, 2020
@prabhuignoto
Copy link
Owner

prabhuignoto commented Oct 13, 2020

sure will look into what is causing this. i will be publishing another package in the evening that should fix the problem.
Will work for react 16 as well 17.

@prabhuignoto
Copy link
Owner

prabhuignoto commented Oct 14, 2020

@xeusteerapat just published a new version. Please update the package and let me know.

@xeusteerapat
Copy link
Author

Hi, there is no error like the previous one after upgraded to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants