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",
//...
},