Why is trpcState unable to dehydrate?

I'm going through the Theo's t3 stack tutorial and came across a problem I can't seem to get around. During the process of creating getStaticProps for the profile [slug].tsx page, we hydrate the page. After using ssg to prefetch, we then use the ssg to dehydrate. When I make this call, it errors out saying "Error serializing .trpcState.json.queries[0].state.data returned from getStaticProps in "/[slug]"." I have tried to console log the output of the prefetch manually and it looks like the data is correctly there.
No description
Solution:
Figured it out. In case anyone comes along later, my issue was that the profile router did not return in the expected user json format
Jump to solution
1 Reply
Solution
islandsoul
islandsoul7mo ago
Figured it out. In case anyone comes along later, my issue was that the profile router did not return in the expected user json format