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

Error: Invalid hook call #8

Open
edgargaza opened this issue Aug 3, 2021 · 0 comments
Open

Error: Invalid hook call #8

edgargaza opened this issue Aug 3, 2021 · 0 comments

Comments

@edgargaza
Copy link

Hello,

When cloning this project and, of course, after installing the npm packages both for the server and the theme package, when I try to run the project on development, it throws the next error:

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 (webpack-internal:///./packages/bootstrap-theme/node_modules/react/cjs/react.development.js:310:1206)
at useState (webpack-internal:///./packages/bootstrap-theme/node_modules/react/cjs/react.development.js:313:485)
at Theme (webpack-internal:///./packages/bootstrap-theme/node_modules/@frontity/connect/src/connect.js:36:72)
at processChild (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:443:2321)
at resolve (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:442:122)
at ReactDOMServerRenderer.render (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:484:1233)
at ReactDOMServerRenderer.read (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:484:55)
at renderToString (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:528:132)
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:73:243)
at runMicrotasks (<anonymous>)

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

1 participant