#React 19 Support?

1 messages · Page 1 of 1 (latest)

steep holly
#

I have an existing project using Vite, React Router 7, and React 19 that I'd like to migrate to Remix. When I run npm i @remix-run/node @remix-run/react @remix-run/serve isbot@4 to add the runtime dependencies it says:

npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0" from @remix-run/[email protected]
npm error node_modules/@remix-run/react
npm error   @remix-run/react@"^2.15.3" from the root project

Is @remix-run/react not compatible with React 19 yet?

merry jasper
#

Remix is just the previous version of RR7. Use it as a framework with vite.

sterile sonnet
#

any reason for the downgrade?

#

you're basically migrating from remix 3 to remix 2

steep holly
#

Oh, I didn't see that Remix is now RR7 (I thought Remix was building upon it). My plan was to add it for SSR.

sterile sonnet
#

yeah RR7 framework mode will give you SSR

#

optionally of course

steep holly
#

Ah nice, I'll look into it

sterile sonnet
#

but enabled by default

#

basically by RR6 all the client side remix stuff was moved over (client loaders and client actions) and now by RR7 all the server stuff is too, so no need for a separate remix pacakge anymore

#

the real answer to your question though was just enable --legacy-peer-deps to get around the version mismatch, even remix 2 did work well with react 19 (it just wasn't released yet)

steep holly
#

But now I don't even need Remix anymore

sterile sonnet
#

yeah there's no way to know really, I just stayed bleeding edge the whole time

#

18 canaries all the way through 19 release candidates

#

and it was seamless

#

but best to stay on RR7

#

lots of good stuff coming now