T
TanStack7mo ago
other-emerald

Streaming SSR error

Hey, I build and start locally this example TSS app and I am getting this error, when I refresh the page on http://localhost:3000/deferred NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. This doesn't happen when I do client navigation (meaning from /client to /deferred) Did anyone struggle with that too?
GitHub
router/examples/react/start-basic-react-query at main · TanStack/ro...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router
No description
11 Replies
other-emerald
other-emeraldOP7mo ago
It's weird but adding async in front of this function fixed that. ✅
GitHub
router/examples/react/start-basic-react-query/app/routes/deferred.t...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router
fascinating-indigo
fascinating-indigo7mo ago
strange, can you please share your repo?
other-emerald
other-emeraldOP7mo ago
@Manuel Schiller It's private, I could make it public if you need. But really there's no other changes apart from that async keyword. Are you having same issu?
fascinating-indigo
fascinating-indigo7mo ago
did not try it 😄 just wondering whether its working inside the monorepo but not outside
other-emerald
other-emeraldOP7mo ago
what is your github nickname? I will add you as collabolator
fascinating-indigo
fascinating-indigo7mo ago
schiller-manuel
fascinating-indigo
fascinating-indigo7mo ago
so does this happen in dev or in prod? i just tried it out, works for me in both dev and prod however, I have commented out this strapi thing
other-emerald
other-emeraldOP7mo ago
It happened only in prod to me
eastern-cyan
eastern-cyan2mo ago
I have the same issue could you share the code block @dominikjasek ?
fascinating-indigo
fascinating-indigo2mo ago
do we have a complete example that reproduces this?

Did you find this page helpful?