Workaround SSG Helpers

Hey all, following Theo's latest tutorial I got to the SSG part and found out the docs aren't working for this exact section, I tried with createServerSideHelpers instead but now I cannot import from '@trpc/react-query/server' as I get Cannot find module '@trpc/react-query/server' or its corresponding type declarations.. Does anybody know what can be the reason? Appreciate the help and time!
Solution:
Hey all, following Theo's latest tutorial I got to the SSG part and found out the docs aren't working for this exact section, I tried with createServerSideHelpers instead but now I cannot import from '@trpc/react-query/server' as I get Cannot find module '@trpc/react-query/server' or its corresponding type declarations.. Does anybody know what can be the reason? Appreciate the help and time!
Jump to solution
2 Replies
jdsl
jdsl2y ago
Try these for the docs: https://trpc.io/docs/nextjs/ssg and https://trpc.io/docs/nextjs/server-side-helpers Double check you have @trpc/react-query installed and then restart TS server. Sometimes it has trouble keeping up.
diegps
diegps2y ago
Had to restart it a couple times but did the trick. Thank you
Want results from more Discord servers?
Add your server