Skip to content

Error: Invalid hook call.  #232

Closed
Closed

Description

@onion0835

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.

Activity

  1. onion0835 commented on Jan 9, 2023

    @onion0835
    Author

    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.
      at resolveDispatcher (C:\p1\chatgptface.web\node_modules\react\cjs\react.development.js:1476:13)
      at Object.useContext (C:\p1\chatgptface.web\node_modules\react\cjs\react.development.js:1484:20)
      at Html (webpack-internal:///./node_modules/next/dist/pages/_document.js:645:106)
      at processChild (c:\p1\chatgptface.web\node_modules\react-dom\cjs\react-dom-server.node.development.js:3353:14)
      at resolve (c:\p1\chatgptface.web\node_modules\react-dom\cjs\react-dom-server.node.development.js:3270:5)
      at ReactDOMServerRenderer.render (c:\p1\chatgptface.web\node_modules\react-dom\cjs\react-dom-server.node.development.js:3753:22)
      at ReactDOMServerRenderer.read (c:\p1\chatgptface.web\node_modules\react-dom\cjs\react-dom-server.node.development.js:3690:29)
      at Object.renderToStaticMarkup (c:\p1\chatgptface.web\node_modules\react-dom\cjs\react-dom-server.node.development.js:4314:27)
      at Object.renderToHTML (c:\p1\chatgptface.web\node_modules\next\dist\server\render.js:894:41)
      at async doRender (c:\p1\chatgptface.web\node_modules\next\dist\server\base-server.js:687:38)
  2. onion0835 commented on Jan 9, 2023

    @onion0835
    Author

    win10 administrator cmd

  3. Alek99 commented on Jan 9, 2023

    @Alek99
    Member

    We are still working on windows support. In the meantime it should work with wsl, trying to get this support asap

  4. added
    bug
    on Jan 9, 2023
  5. Alek99 commented on Jan 9, 2023

    @Alek99
    Member

    Closing duplicate issue here #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions