Next.15 and React 19 with hybrid (Pages and app Router) app
Unanswered
French Lop posted this in #help-forum
French LopOP
Hey all, very excited to try out Next 15!
Right now, I have a Next 14 project that is only on Pages Router. If I upgrade my app to Next 15, use the codegen for React 19, and do an incremental adoption of app router (https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration), will I be OK?
It sounds like I will be OK here, but the language (https://nextjs.org/blog/next-15#pages-router-on-react-18:~:text=Note%3A%20While,not%20fully%20align.) in the Next 15 release docs sounds like there may be problems if I do this? Do I have to worry about mismatched React versions between pages/app routes?
I only want to move one page over to App Router and keep every other page on Pages Router.
So it sounds like I should either:
- Incrementally adopt App Router into my Next 14 app and then upgrade to Next 15 when every page is on App Router, or
- Run the codemods and upgrades for Next 15 as-is on my Pages Router project, and then I can incrementally adopt App Router without any problems
Right now, I have a Next 14 project that is only on Pages Router. If I upgrade my app to Next 15, use the codegen for React 19, and do an incremental adoption of app router (https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration), will I be OK?
It sounds like I will be OK here, but the language (https://nextjs.org/blog/next-15#pages-router-on-react-18:~:text=Note%3A%20While,not%20fully%20align.) in the Next 15 release docs sounds like there may be problems if I do this? Do I have to worry about mismatched React versions between pages/app routes?
I only want to move one page over to App Router and keep every other page on Pages Router.
So it sounds like I should either:
- Incrementally adopt App Router into my Next 14 app and then upgrade to Next 15 when every page is on App Router, or
- Run the codemods and upgrades for Next 15 as-is on my Pages Router project, and then I can incrementally adopt App Router without any problems