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

Problem with react 18 #155

Open
dara1400 opened this issue Aug 1, 2023 · 1 comment
Open

Problem with react 18 #155

dara1400 opened this issue Aug 1, 2023 · 1 comment

Comments

@dara1400
Copy link

dara1400 commented Aug 1, 2023

Hello

I got this error when I am using it in react 18:

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.
    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:
  4. You might have mismatching versions of React and the renderer (such as React DOM)
  5. You might be breaking the Rules of Hooks
  6. 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.
    at resolveDispatcher (http://localhost:3000/static/js/bundle.js:35084:17)
    at useState (http://localhost:3000/static/js/bundle.js:35110:24)
    at WEBPACK_DEFAULT_EXPORT (http://localhost:3000/static/js/bundle.js:43535:61)
    at renderWithHooks (http://localhost:3000/static/js/bundle.js:21478:22)
    at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:24764:17)
    at beginWork (http://localhost:3000/static/js/bundle.js:26060:20)
    at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:11070:18)
    at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:11114:20)
    at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:11171:35)
    at beginWork$1 (http://localhost:3000/static/js/bundle.js:31045:11)
@peterzanetti
Copy link

Any update here? Just not going to work with React 18?

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

No branches or pull requests

2 participants