CanaryOnlyError after just running npx @next/codemod@canary upgrade latest
Unanswered
Asian black bear posted this in #help-forum
Asian black bearOP
Hi. I just:
1. Ran
2. Enabled
3. Added
And immediately when running a dev build, the build is exiting with an error:
In
I tried:
1. Running
2. Removing
Nothing helped.
Sorry, If I just didn't find the right place to look. The latest version on the blog is 15.2, and these were the suggested update commands.
1. Ran
npx @next/codemod@canary upgrade latest
on an existing project;2. Enabled
ppr: "incremental",
in next.config.js
;3. Added
export const experimental_ppr = true;
to a page.tsxAnd immediately when running a dev build, the build is exiting with an error:
__NEXT_ERROR_CODE =
'E394'
message =
'The experimental feature "experimental.ppr" can only be enabled when using the latest canary version of Next.js.'
In
package.json
the versions are: "next": "15.2.2",
"react": "19.0.0",
"react-dom": "19.0.0",
//...
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
I tried:
1. Running
install next@latest react@latest react-dom@latest
2. Removing
react
and react-dom
and the weird @types/*
versions for the two, and reinstalling react
. I know it has nothing to do with the issue, but just in case.Nothing helped.
Sorry, If I just didn't find the right place to look. The latest version on the blog is 15.2, and these were the suggested update commands.
1 Reply
Asian black bearOP
Has it something to do with
v15.3.0-canary.1
being in pre-release?