Code Monkey home page Code Monkey logo

Comments (6)

lewis262626 avatar lewis262626 commented on June 8, 2024

Also having the same issue. I'm following this tutorial: https://nextjs.org/learn/basics/create-nextjs-app/setup

@vercel

from next-learn.

mxa0079 avatar mxa0079 commented on June 8, 2024

This should be solved by #24

from next-learn.

meowthing avatar meowthing commented on June 8, 2024

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.

lewis262626 avatar lewis262626 commented on June 8, 2024

Can we get #24 merged?

from next-learn.

leerob avatar leerob commented on June 8, 2024

I'm taking care of the package updates now! Thank you all so much.

from next-learn.

leerob avatar leerob commented on June 8, 2024

#23 was merged, resolving the issues.

from next-learn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.