Skip to main content

Questions tagged [trpc]

use this tag for questions related trpc to build typesafe APIs in typescript.

0 votes
0 answers
21 views

⨯ TypeError: react__WEBPACK_IMPORTED_MODULE_2__.useContext is not a function

I am working on a Next.js project where I am using TRPC and React Query for data fetching. However, I am encountering a TypeError: useContext is not a function error. Here is my setup: TRPC Client ...
Deepansh .i's user avatar
0 votes
1 answer
18 views

Vercel Hobby plan timeout at 10 seconds

I have a next.js/trpc project, and have deployed it on vercel and using hobby plan. I integrated openai api, and on deployed website it times out at 10 second saying JUL 05 01:51:56.38 gymgenieai-...
Ash Gharibyan's user avatar
1 vote
0 answers
19 views

How can i send messages via WebSockets with React on the frontend and trpc on the backend

I know I can receive data from trpc in React and do I have the possibility to send messages via wsLink? I want to connect to Binance and be able to place orders via WebSockets, so far I've only been ...
seven's user avatar
  • 1,482
0 votes
0 answers
21 views

Nextjs tRPC Error: (0 , react__WEBPACK_IMPORTED_MODULE_3__.createContext) is not a function

i am getting error of createContext i checkout for every possible solution don't know why this error is coming. describing more about it: getting createContext not a function error checked many repo ...
Jay Suthar's user avatar
0 votes
0 answers
30 views

ERROR Error saving data [TRPCClientError: JSON Parse error: Unexpected character: B]

I have an App that im creating that takes the user through a onboarding process for their user details. I have two screens where it is triggered. One on a screen where the user is checking to see if ...
Jason_Day's user avatar
0 votes
0 answers
23 views

Migrate Express Backend and React Native Frontend to Monorepo for TRPC

I have a node.js Express (Typescript) backend. I also have a React Native frontend. These exist in separate repos. I want to use TRPC: https://trpc.io/ to achieve end to end type safety. To my ...
713sean's user avatar
  • 333
0 votes
0 answers
37 views

Error "Subscriptions should use wsLink" using tRPC

While trying to implement subscriptions with tRPC, I encountered this issue, that it should use wsLink, even though, it is implemented in the trpc client. I get this error when trying to use ...
Jaacoubi's user avatar
0 votes
1 answer
52 views

response cookie not persisting with Elysia & TRPC

So picked up Bun recently, have setup Remix + Elysia wrapped TRPC + Prisma to build out a project. I've created a pretty simple login system with the intention to implement the JWT cookie flow. ...
alexjkni.dev's user avatar
-2 votes
1 answer
74 views

tRPC integration issue with the client-side [closed]

the thing is i dont have one single specific problem but several stuff xD,im working with electron and react, and my backend dev is using tRPC for the api , now that i'm integrating im kinda confsued ...
KhaliLounis's user avatar
0 votes
2 answers
80 views

Conditional tRPC v10 fetch with useQuery and required parameters

I'm trying to understand how to use the @tanstack/react-query integration for tRPC when I have conditional fetches that have required parameters. For example, say I have this backend: // Backend ...
Alex Wayne's user avatar
  • 185k
0 votes
1 answer
48 views

Why I can't receive an image on the tRPC server?

I'm working on an app that uses Next.JS, Typescript, tRPC and ShadCN I was assigned a task to implement a profile image uploading feature on an already existing form The form uses ShadCN and React-...
Henrique's user avatar
0 votes
0 answers
42 views

Is there a way to modify the latest `create-t3-app` to create a protected trpc procedure?

I created a new project with npm create-t3-app@latest with trpc, typescript, tailwind, prisma, and clerk. The newest version invokes a caller function to create two api definitions, one for the server ...
Austin Thaldorf-Huelsbeck's user avatar
0 votes
0 answers
54 views

Download xlsx file with tRPC router t3 stack

i receive an xlxs from the backend api after submitting a form and i cant fugure out why i dont get a prompt for downloading the file export const reportRouter = createTRPCRouter({ create: ...
Gabriel Dumitru's user avatar
0 votes
0 answers
37 views

TRPC: What object is passed to the function passed to a procedure?

I'm having a hard time understanding from trpc's official docs exactly how to get the various properties of a Request object that comes to my API into the procedures I define in a trpc router. The ...
rocdaddy's user avatar
0 votes
0 answers
138 views

Error: Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?

Question: I'm encountering an issue with my Next.js application where I'm trying to use tRPC for API handling. I'm getting the following error: Error: Unable to find tRPC Context. Did you forget to ...
name__'s user avatar
  • 59

15 30 50 per page
1
2 3 4 5
11