Next.js Discord

Discord Forum

Most ideal create-next-app setup to support older React versions

Unanswered
Bengal posted this in #help-forum
Open in Discord
BengalOP
I am in a situation where a required dependencies (UI library that is managed by a client) requires an old version of React. The required React version is ^16.8 but the current React version is 18.2.0. I am aware this is annoying but I have no control over the UI library.

What is the best way to have it worked well with create-next-app?

I have read up and the most common solution is to run the create-next-app and then to manually downgrade react and react-dom but I am aware the next dependency might not well as expected.

5 Replies

looks like nextjs v10 was the final version that supports react 16.8
time to just ask them to upgrade their react version
BengalOP
yeah, I though so, I have found the manual installation and would just have to install v10
they do have a public repo, could help them
thanks for your help!