Experimental PPR doesn't work with Next.js 15 RC 2
Answered
Great-tailed Grackle posted this in #help-forum
Great-tailed GrackleOP
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
The error:
My package.json:
// 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",
//...
},
Answered by Great-tailed Grackle
OK I've fixed it:
Turns out upgrading Next.js from 14 to 15 with codemod:
does not upgrade it to canary. I had to manually upgrade it with this:
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
1 Reply
Great-tailed GrackleOP
OK I've fixed it:
Turns out upgrading Next.js from 14 to 15 with codemod:
does not upgrade it to canary. I had to manually upgrade it with this:
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
Answer