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:Jump to 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!2 Replies
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.Had to restart it a couple times but did the trick. Thank you