Comments (6)
Also having the same issue. I'm following this tutorial: https://nextjs.org/learn/basics/create-nextjs-app/setup
from next-learn.
This should be solved by #24
from next-learn.
I've tried to update my react packages to the latest ver but that didn't solve anything. I am also trying the tutorial at https://nextjs.org/learn/basics/create-nextjs-app/setup
Message:
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 (I:\projects\nextjs-blog\.next\server\pages\_document.js:3384:13)
at useContext (I:\projects\nextjs-blog\.next\server\pages\_document.js:3392:20)
at Html (I:\projects\nextjs-blog\.next\server\pages\_document.js:330:29)
at processChild (I:\Projects\nextjs-blog\node_modules\react-dom\cjs\react-dom-server.node.devel
opment.js:3353:14)
at resolve (I:\Projects\nextjs-blog\node_modules\react-dom\cjs\react-dom-server.node.developmen
t.js:3270:5)
at ReactDOMServerRenderer.render (I:\Projects\nextjs-blog\node_modules\react-dom\cjs\react-dom-
server.node.development.js:3753:22)
at ReactDOMServerRenderer.read (I:\Projects\nextjs-blog\node_modules\react-dom\cjs\react-dom-se
rver.node.development.js:3690:29)
at renderToStaticMarkup (I:\Projects\nextjs-blog\node_modules\react-dom\cjs\react-dom-server.no
de.development.js:4314:27)
at renderDocument (I:\Projects\nextjs-blog\node_modules\next\dist\next-server\server\render.js:
3:669)
at renderToHTML (I:\Projects\nextjs-blog\node_modules\next\dist\next-server\server\render.js:54
:103)
from next-learn.
Can we get #24 merged?
from next-learn.
I'm taking care of the package updates now! Thank you all so much.
from next-learn.
#23 was merged, resolving the issues.
from next-learn.
Related Issues (20)
- Chapter 8: Question to the use of unstable_noStore() inside data access functions. HOT 1
- Chapter 11: Small typo `searchParams` should be `useSearchParams`
- [Next.js Learning Website] Missing nav-links.tsx File in Chapter 5: Navigating Between Pages HOT 2
- Docs: Chapter 8 Static and Dynamic Rendering
- Why we use unstable_noStore in chapter8 and use revalidatePath in chapter12? HOT 4
- Think about opening GitHub Discussions
- Unable to get issuer cert locally HOT 2
- tutorial problem on 12.2.6 HOT 2
- Trying out Turbopack with next-learn/dashboard/final-example, something doesn't work.
- Extending the tutorial app's loading/suspense behavior to delete invoice
- [app] Invalid URL link at https://nextjs.org/learn/dashboard-app/creating-layouts-and-pages
- Stuck on Chapter 12, getting 404 when clicking Edit Invoice Button
- stuck in postgress setpup npm run seed is not working HOT 1
- Connection problem HOT 2
- 'Npm run seed' complains about a missing seed script HOT 1
- Unable to seed the data due to connection error HOT 8
- File name typo in Chapter 14 - action.ts instead of actions.ts
- Chapter 15 CallbackRouteError, TypeError: "ikm"" must be an instance of Uint8Array or a string
- Decouple tutorial from vercel sql functionality HOT 3
- Docs mention to opt out directories from routing via the `_`, but the tutorial does not follow this practice for /lib and /ui
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-learn.