route: ssr: false, works in prod build. but in dev Error : Uncaught (in promise) SyntaxError: The requested module '/node_modules/.pnpm/react-dom@19.2.6_react@19.2.6 #1546
Replies: 2 comments
-
|
Can you provide a code repository that can reproduce the issue? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @fengmk2, thanks for looking into this! Reproduction repo: hendripermana/permoney (branch How to reproduce:
Root cause (traced): After extensive debugging, we have confirmed this is not a Vite+ issue — it is upstream in TanStack Router/Start. The import chain:
Why Vite+ is not at fault: Production builds ( Upstream issue filed: TanStack/router#7412 Our app-level workaround: We added a Apologies for the initial vague report — my AI agent and I have since done a proper root-cause trace. This can likely be closed on the Vite+ side since the fix belongs in TanStack Router. Thanks for your time! 🙏 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hey! weird one with vp dev + TanStack Start.
route: ssr: false, works in prod build. but in dev, browser module graph pulls in react-dom/server.browser.js from
somewhere deep and throws does not provide an export named 'default'. tried a custom Vite plugin to shim react-dom/server
→ no luck.
vibecoder disclaimer: i don't actually code lol, i've got an AI agent (acting as a engineer) doing the actual
work while i just vibe and point. so forgive me if i'm missing something basic — the agent's been digging for hours and
we're both stuck.
is there something about how Vite+ handles the dev SSR module graph that could cause this? any config flag i should
try? or should i just file this on the TanStack side?
Error :
Uncaught (in promise) SyntaxError: The requested module '/node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/server.browser.js?v=cfd7a65e' does not provide an export named 'default' (at renderRouterToString.js?v=cfd7a65e:1:8)
Beta Was this translation helpful? Give feedback.
All reactions