Issues with Vite + SSR #1995
Replies: 2 comments
-
Did you figure this out? |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. In my case the problem was that npm did not dedupe the You can simple check with For me, it solved the issue by deleting the |
Beta Was this translation helpful? Give feedback.
-
I'm trying to achieve SSR in Tanstack Router + React + Vite + Hono in Bun.
Following the SSR guide in the documentation, everything seems to be set up correctly: building works as expected creating both
client
andserver
folders underdist
.My
entry-server.tsx
file is like this:( complains about the router type...)
and this is my Hono's
ssr
middleware:await router.load();
crashes, giving me this error:Is this something related to Bun (not fully supported), to Hono or what?
Router works perfectly in the SPA without SSR.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions