Error reading routerStream
After I have updated to latest versions of Start, this error came up, and somehow even after downgrading back to 1.125.4, it is still there:
versions are:
6 Replies
ambitious-aqua•5mo ago
same issue, had to downgrade:
- @tanstack/react-router 1.127.3
+ @tanstack/react-router 1.125.6
- @tanstack/react-start 1.127.7
+ @tanstack/react-start 1.125.6
fascinating-indigo•5mo ago
what do you want to serialize here?
which stuff are you trying trying to serialize here?
genetic-orangeOP•5mo ago
Looks like that was Markdoc stuff (the result of Markdoc.transform) that is returned from the server function. It contains some classes that don’t get serialized by default.
The workaround for me was to use JSON.serialize in the server function and JSON.parse in my component. Not quite performant, I suppose, with quite big markdown document I have.
That was quite strange because it worked with the same versions of start before…
That was quite strange because it worked with the same versions of start before…
national-gold•5mo ago
I'm seeing a similar error when e.g. returning a
getTitle function from beforeLoad. I've moved it out to a util function, but I'm curious if the pattern of returning a function from beforeLoad is no longer supported/recommended in Start apps. It worked prior to Start 1.27.x, but I'm curious whether it should work or not.fascinating-indigo•5mo ago
it was never supported
we will enable Serialization control for the lifecycle methods so you can decide whether to serialize the output on the server or not and then rerun on the client
flat-fuchsia•3mo ago
Im getting this same error, not sure where it comes from though