MadaShindeInai
Explore posts from serversError: Error serializing `.trpcState.json.queries[3].promise` returned from `getStaticProps`
Hi. Trouble is, as I said earlier, I can't do stable reproduction. (I tried!)
Even in current project, if I remove unnecessary routes, leaving only the ones that crashed with an error before and build again - build goes fine. But increasing the number of routes - the errors start dropping again.
However, I can send an invite to the repository where this happens, and share environment variables in DM. Would that work?
15 replies
Error: Error serializing `.trpcState.json.queries[3].promise` returned from `getStaticProps`
Uh, almost forgot, Package versions:
"@tanstack/react-query": "5.66.0",
"@trpc/client": "11.0.0-rc.730",
"@trpc/next": "11.0.0-rc.730",
"@trpc/react-query": "11.0.0-rc.730",
"@trpc/server": "11.0.0-rc.730",
15 replies
Error: Error serializing `.trpcState.json.queries[3].promise` returned from `getStaticProps`
I also double checked all chains from the "await prefetchHelper." up to prisma query, and can confirm that all async / await declarations are in place and defined explicitly.
15 replies
How do I create a React/Node full-stack project with tRPC?
I meant https://create.t3.gg/ T3-app setup. Just decouple NextJs from there and replace it with Remix 🙂
I may be wrong, but Idea is that you need to have both FE and BE part in your app (in the same repo).
You can achieve it with Fullstack framework or maybe React + SST framework.
9 replies
TTCTheo's Typesafe Cult
•Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
Well, the problem was with building and running image on mac m1.
Config (docker image) that works with Images too slow locally, works good on railway. And do not work on fly.io at all ☹️
6 replies
TTCTheo's Typesafe Cult
•Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
upd. made an example repos:
T3(with issue): https://github.com/MadaShindeInai/t3-docker-sharp
BareNext(no issue): https://github.com/MadaShindeInai/next-docker-sharp
6 replies