Next.js Discord

Discord Forum

I am not able to upgrade from v10 to v14

Unanswered
Large garden bumble bee posted this in #help-forum
Open in Discord
Large garden bumble beeOP
We have a Next.js app using v10 and React 16.13.1. We need to upgrade to Next 13 at the very least to leverage the dynamic metadata feature. I've tried upgrading from Next 10 to 11 and React/React-dom 16.13.1 to 17 which was stated here https://nextjs.org/docs/pages/building-your-application/upgrading/version-11 but I continue to get peer dependency errors no matter how incremental I attempt to upgrade.

Steps I last took following the doc listed about (attempting upgrading 1 version at a time):
1. Update Next to "11.0.0"
2. Update React to "17.0.0"
3. Update React-dom tp "17.0.0"
4. Run docker-compose build
5. Error that is outputted: Could not resolve dependency: peer react@"^17.0.2" from next@11.0.0 node_modeules/next next@"11.0.0" from the root project

Can anyone help or have any clues on what I can do so that we can upgrade?

2 Replies

Large garden bumble beeOP
Bump please
Large garden bumble beeOP
Bump please