Created
August 22, 2019 13:20
-
-
Save dancancro/2dfafb053aaaedfade406fd4f67eb68a to your computer and use it in GitHub Desktop.
Invariant Violation: Invalid hook call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
Invariant Violation: 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://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem. | |
at invariant (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:7247:15) | |
at resolveDispatcher (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:8595:28) | |
at Object.useContext (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:8600:20) | |
at useTheme (/Users/Dan/work/b/questions/.next/server/static/development/pages/index.js:22064:55) | |
at /Users/Dan/work/b/questions/.next/server/static/development/pages/index.js:21683:91 | |
at Object.WithStyles [as render] (/Users/Dan/work/b/questions/.next/server/static/development/pages/index.js:22156:21) | |
at ReactDOMServerRenderer.render (/Users/Dan/work/b/questions/node_modules/react-dom/cjs/react-dom-server.node.development.js:3325:44) | |
at ReactDOMServerRenderer.read (/Users/Dan/work/b/questions/node_modules/react-dom/cjs/react-dom-server.node.development.js:3161:29) | |
at renderToString (/Users/Dan/work/b/questions/node_modules/react-dom/cjs/react-dom-server.node.development.js:3646:27) | |
at render (/Users/Dan/work/b/questions/node_modules/next-server/dist/server/render.js:85:16) | |
at renderPage (/Users/Dan/work/b/questions/node_modules/next-server/dist/server/render.js:234:20) | |
at _callee2$ (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:5357:24) | |
at tryCatch (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:712:40) | |
at Generator.invoke [as _invoke] (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:938:22) | |
at Generator.prototype.(anonymous function) [as next] (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:764:21) | |
at asyncGeneratorStep (/Users/Dan/work/b/questions/.next/server/static/development/pages/_document.js:272:24) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment