Replies: 6 comments 9 replies
-
Hi, The problem is that, https://github.com/vercel/next.js/blob/canary/packages/next/package.json#L108-L109, lists those RC specific versions, as peerDependencies. Eventually, when React 19 does stabilize, this won't be a problem, but as release day approaches, and new react, react-dom RC versions are publishes, Next.js is bound to lag slightly behind. |
Beta Was this translation helpful? Give feedback.
-
Has anyone managed to sort this yet? npm error code ERESOLVE I have been trying all sorts of flags like --force, --legacy-peer-deps, -npm reinstall, --no-frozen-lockfile. I have also tried manually changing versions in the package.json, package-lock.json and yaml files. Nothing seems to work and my deployments are failing. This is the dashboard project on the next.js getting started tutorial by the way. I can launch the project from vscode and it all seems to run ok locally - but failing on the build I guess. |
Beta Was this translation helpful? Give feedback.
-
using pnpm this worked for me: |
Beta Was this translation helpful? Give feedback.
-
Adding this to my "overrides": {
"next": {
"react": "^19.0.0-rc-a960b92c-20240819",
"react-dom": "^19.0.0-rc-a960b92c-20240819"
}
} You might want to change the version to the latest React RC version. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Well I really want to upgrade, but I'm just taking this as a sign to wait until the next RC at least. |
Beta Was this translation helpful? Give feedback.
-
Summary
Hi,
I'm trying to follow the steps here to upgrade Next.js 14 to 15 RC and encounter the following error
is this an expected error and we should specify
--force
when installing the RC packages?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions