Authentication broke after bump to v10 from v9

Anyone that has any suggestions on what might have caused this? I get the following error when trying to sign in or sign up.:
"Cannot use 'in' operator to search for 'auth.signUp' in undefined"
"Cannot use 'in' operator to search for 'auth.signUp' in undefined"
Do I need to replace this with something new?
AK
Alex / KATT 🐱561d ago
Have you enabled interop mode?
AK
Alex / KATT 🐱561d ago
Migrate from v9 to v10 | tRPC
tRPC v10 is ready for production and can safely be used today.
W
Wezter561d ago
Oh I missed that one, thanks a lot! Ran through so many things and that was the only thing I had to do, can't thank you enough! 😄
W
Wezter560d ago
Sorry to bother you again but should this also be updated?
AK
Alex / KATT 🐱560d ago
don't update that until you've updated the whole BE
W
Wezter560d ago
and you think I should update all the routers before I continue with something else?
AK
Alex / KATT 🐱560d ago
Read the docs
AK
Alex / KATT 🐱560d ago
Define Procedures | tRPC
- A procedure can be viewed as the equivalent of a REST-endpoint or a function.
W
Wezter560d ago
Yeah sorry I missed the end of the doc I was reading, been sitting too long by the computer I guess 😅 Is this something that isn't needed anymore in v10 or where can I read about this?(the merge part below)
.merge(
'me',
protectedRoute.query('', {
resolve: async ({ ctx }) => {
return ctx.user
},
})
)
.merge(
'me',
protectedRoute.query('', {
resolve: async ({ ctx }) => {
return ctx.user
},
})
)
More Posts
Show a spinner when any mutation is loading?Looking to show an activity spinner in the header of our application whenever a mutation is in flighSharing schemas between server and clientIn a typical nextJs setup, what is the idiomatic way to share zod schemas between frontend and backev10 Migration interop, router doesnt have attributesHi, i've tried to migrate like stated in the docs, these are my routers. Question: Shouldn't appRoutRecommended file structure for next.js?Hey all - using tRPC heavily with next.js and it's great. Our main `[trpc].ts` file is getting huge Unhandled Runtime ErrorTRPCClientErrorCall Stack Function.from node_modules\@trpc\client\dist\TRPCClientError-09b8a26b.esm.js (57:0) transWeird error when running unit test`10.0.0-proxy-beta.5` works just fine, error occurs on `10.0.0-proxy-beta.6` with the introduction oSharing middleware between TRPC serversWe currently have *microservices* REST API's on Cloudflare Workers and I'm thinking about moving thiIs `trpc.withTRPC` for Next supposed to work with pages or only `_app`?I'd love to only have TRPC mount on certain pages of my Next.js app. Is this currently supported?What does the WebSocketHandler do?I'm not sure what this is doing on the background.Are there any example of subscriptions working with react native ?queries and mutations are working pretty well with react native, I'm unable however to get subscriptRecommended way to prefetch client-sideIn react-query, you can do ``` queryClient.prefetchQuery(['todos', input], queryFn) ``` In trpc, IRevalidate API route from procedureHi, is there a way to revalidate a statically generated page from a trpc procedure? https://nextjs.Modifying payload client-side before cachingSay I have a payload that includes something like `category_id` in each of the items returned e.g.: errorFormatter is not being called?Could somebody confirm that this callback is called in the latest version? I call it from server sidResponse headersIs it possible to modify the response headers from server to client?API Response caching not working on vercel ⁉I've followed the instructions in https://trpc.io/docs/v9/caching for API Response caching and it's when throwing a TRPCError, is there a way to include an internal error code ?for the given screenshot, if such error happens I wanna prompt the user to login or something.Websocket connection failed.I'm following the websocket's example and it works fine as it is, however I changed some things and extra json property added after data when consuming a query hook.I have this issue where when consuming a RQ hook there is an extra `json` object that I have to useProblem using next+ssgHi, Im trying to use the @trpc/next SSG Helper and I get content on the page. Although I noticed tha