jeverhart383 / first-headless-project-decode-2023 Goto Github PK
View Code? Open in Web Editor NEWA code sample for my DECODE 2023 presentation
A code sample for my DECODE 2023 presentation
I get the below error on localhost:3000
Server 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:
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
resolveDispatcher
file:///C:/Users/path/Downloads/first-headless-project-decode-2023-main/node_modules/react/cjs/react.development.js (1476:13)
Object.useContext
file:///C:/Users/path/Downloads/first-headless-project-decode-2023-main/node_modules/react/cjs/react.development.js (1484:20)
Html
node_modules\next\dist\pages_document.js (652:105)
processChild
file:///C:/Users/path/Downloads/first-headless-project-decode-2023-main/node_modules/react-dom/cjs/react-dom-server.node.development.js (3353:14)
resolve
file:///C:/Users/path/Downloads/first-headless-project-decode-2023-main/node_modules/react-dom/cjs/react-dom-server.node.development.js (3270:5)
ReactDOMServerRenderer.render
I tried running
npm ls react
and it shows
@faustwp/[email protected] c:\Users\path\Downloads\first-headless-project-decode-2023-main
+-- @wordpress/[email protected]
| +-- @wordpress/[email protected]
| | -- [email protected] deduped | +-- @wordpress/[email protected] | |
-- @wordpress/[email protected]
| | -- [email protected] | +-- @wordpress/[email protected] | |
-- @wordpress/[email protected]
| | -- @wordpress/[email protected] | |
-- [email protected]
| -- @wordpress/[email protected] |
-- @wordpress/[email protected]
| -- [email protected]
-- [email protected]
Is there a way to resolve this?
I'm running on Windows 10.
Hi Jeff, thanks for doing this tut, and repo.
I'm getting a server error after running 'npm run dev'.
I'm running node v 19.3.0 on a windows machine.
Any help is much appreciated. Thanks!
This error happened while generating the page. Any console logs will be displayed in the terminal window.
new ApolloError
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/@apollo/client/errors/errors.cjs (34:28)
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/@apollo/client/core/core.cjs (1853:19)
both
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/@apollo/client/utilities/utilities.cjs (1068:53)
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/@apollo/client/utilities/utilities.cjs (1061:72)
new Promise
Object.then
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/@apollo/client/utilities/utilities.cjs (1061:24)
Object.error
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/@apollo/client/utilities/utilities.cjs (1069:49)
notifySubscription
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/zen-observable/lib/Observable.js (140:18)
onNotify
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/zen-observable/lib/Observable.js (179:3)
SubscriptionObserver.error
file:///C:/_WordPress_Projects/first-headless-project-decode-2023/node_modules/zen-observable/lib/Observable.js (240:7)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.