Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 10 : PPR issues #898

Open
ColDuc opened this issue Oct 28, 2024 · 3 comments
Open

Chapter 10 : PPR issues #898

ColDuc opened this issue Oct 28, 2024 · 3 comments

Comments

@ColDuc
Copy link

ColDuc commented Oct 28, 2024

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
Copy link

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
Copy link
Author

ColDuc commented Oct 29, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants