t3 chirp project - cant resolve trpc ssgHelpers

when following video ssg had error on import so changed code to the different code on the repo of the project. Then the new code said depreciated on the ssg import, so uninstalled and installed with the repos versions of TRPC and now getting- module not found for @trpc/react-query/ssg just wondering if anybody else doing the projects encounter this problem and found a good solution for it. New to the stack and first time using ssgHelper
3 Replies
cje
cje13mo ago
Server-Side Helpers | tRPC
createServerSideHelpers provides you with a set of helper functions that you can use to prefetch queries on the server. This is useful for SSG, but also for SSR if you opt not to use ssr: true.
Alex Crowe
Alex Crowe13mo ago
that worked awesome thanks a ton!
stoyko
stoyko13mo ago
Could you please mark as answered so other people can know as well