vercel / next-learn

Learn Next.js Starter Code
https://next-learn-dashboard.vercel.sh/
MIT License
3.81k stars 1.93k forks source link

Chapter 10 : PPR issues #898

Open ColDuc opened 4 weeks ago

ColDuc commented 4 weeks ago

In chapter 10, enabling PPR should look like this according the tutorial :

Screenshot 2024-10-28 145610

In my document, however, I have this :

Screenshot 2024-10-28 145838

Does it make a difference? Which one is the most recent one? Is it the reason why I have an error in my layout saying that "experimental_ppr is not a valid Next.js entry export value" ?

Screenshot 2024-10-28 150032

mircea2000 commented 4 weeks ago

ull need to use next canary which is not offical release yet

Partial Prerendering Preview in Next.js Canary Why This Error Occurred In your next.config.js you enabled experimental.ppr but you are not using the latest Next.js canary. To ensure you are experimenting with the latest version, we currently require the use of a canary release. just comment for now and it should work

import type { NextConfig } from "next";

const nextConfig: NextConfig = { / config options here / // experimental: { // ppr: "incremental", // }, };

export default nextConfig; \next.config.ts

ColDuc commented 4 weeks ago

Hi Mircea, Thanks for your answer!

I ended up commenting and skipping this part indeed. I also asked my superior about it, he said we probably will not use it at work anyway.

Your answer is the clearest I read on this issue. I am glad i asked!

Have a great day.

mircea2000 commented 3 weeks ago

u will run in many issues as this tutorial is not very complete and also has erros.... lmk if u have more q.... as i had to do the hard work lol