#Experimental PPR doesn't work with Next.js 15 RC 2

4 messages · Page 1 of 1 (latest)

gilded meteor
#

I wanted to try PPR using Next.js 15 RC 2 in my side project (just for fun and learning purposes). But it doesn't seem to recognize I'm using Next.js canary.

// next.config.ts

import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  experimental: {
    ppr: 'incremental',
  },
  //...
};

export default nextConfig;

The error:

throw new CanaryOnlyError('experimental.ppr');
                  ^

CanaryOnlyError: The experimental feature "experimental.ppr" can only be enabled when using the latest canary version of Next.js.

My package.json:

"dependencies": {
    //...
    "next": "15.0.0-rc.1",
    "react": "19.0.0-rc-cd22717c-20241013",
    "react-dom": "19.0.0-rc-cd22717c-20241013",
    //...
  },
devout gobletBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

gilded meteor
#

Experimental PPR doesn't work with Next.js 15 RC 2

gilded meteor
#

OK I've fixed it:
Turns out upgrading Next.js from 14 to 15 with codemod:

npx @next/codemod@canary upgrade

does not upgrade it to canary. I had to manually upgrade it with this:

npm i next@canary react@rc react-dom@rc eslint-config-next@rc