vercel / next-react-server-components

Demo repository for Next.js + React Server Components
https://next-rsc-hn.vercel.app
MIT License
976 stars 156 forks source link

Server components are broken with Next v.12.2.1 #51

Closed neatbyte-vnobis closed 1 year ago

neatbyte-vnobis commented 1 year ago

Steps to Reproduce:

  1. Clone the repository
  2. Run locally
  3. Go to /slow or /rsc
  4. Pages won`t render (infinite loading)

Fix: After downgrading to Next v.12.1.* (currently 12.1.6) everything works as expected

Updated package.json:

{
  "scripts": {
    "dev": "yarn next dev",
    "build": "yarn next build",
    "start": "yarn next start"
  },
  "dependencies": {
    "ms": "2.1.3",
    "next": "12.1.*",
    "react": "^18.1.0",
    "react-dom": "^18.1.0"
  }
}
minhchu commented 1 year ago

I'm having the same issue with Next 12.2.1

leerob commented 1 year ago

Hey folks! I would recommend not using this just yet while we work on moving toward the Layouts RFC, which uses Server Components by default.

leerob commented 1 year ago

Refactored to v13 and app: https://github.com/vercel/next-react-server-components/pull/53