-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"react-router" + "@vercel-remix" type incompatibility (project broke after upgrading Remix to RR7) #144
Comments
Import EntryContext from react-router instead
|
Hi @AlexGodard thanks for your reply :) Just wondering, can you explain how you know this will be compatible? The Vercel guide tells us to replace all My worry about doing what you suggested is that I'd be lying to the type system about what the actual Vercel entry context is? So I'm wondering if you know that this will not only make the type error go away but also leave me with a correct Vercel/ |
Basically I'm applying Chesterton's Fence here and thinking there was an important reason for Vercel to use their own context type. |
@torbensky At this point in time, you can't expect the The only official working example I've seen of RR7 + Vercel is this repo: https://github.com/remix-run/react-router-templates/tree/main/vercel Basically, we'll have to wait until the vercel team publishes a new There's an issue tracking this: #141 |
@torbensky At this point in time, you can't expect the @vercel/remix package to work with anything React-Router-v7 related. It may work with your current setup, but expect quirks.
Thanks for your reply, that is what I was thinking and what this issue was for 👍
|
I believe this topic could be closed, see: |
Description
I followed the Remix -> React Router v7 migration guide and ran into a problem with the
EntryContext
type exported by@vercel/remix
which I configured while following Using a custom app/entry.server file.I believe it's because this project does not yet support RR7?
Additional context:
I have the following
entry.server.tsx
file:Dependencies:
The text was updated successfully, but these errors were encountered: