Questions tagged [t3]
51 questions
0
votes
1 answer
In T3 Stack project, I'm getting query logs in console of browser, How can I stop it?
I have T3 stack project and I'm fetching data using trpc and prisma, but It's showing logs in browsers console.
How can I stop this logs?

Shubham Nikam
- 70
- 7
0
votes
0 answers
Can I add a technology after creating a project with T3?
I have created a NextJS project with T3 with TailwindCSS. I have now realized that I would like to use Prisma too. Is there any other way to do it than copying-and-pasting the corresponding files into the project manually?
I tried searching on…

its.ilariiiiia
- 58
- 8
0
votes
0 answers
Error with T3 Stack(turbo repo - t3-turbo) with Websocket server
using:
t3-turbo
pnpm
bare with me please, i'm not a professional. i'm current working on a websocket server for a live messaging feature but i'm stuck at running the websocket server in ./packages/websocket having and error with the module type.…
0
votes
0 answers
Fresh T3 app, Auth doesn't work on Vercel
I found this video on how to create a T3 app.
To summarize, this is what I did:
npm create t3-app@latest, use TypeScript, include all 4 features
in this case I left the DB as the default SQLite (but I tried PlanetScale too just to do exactly as the…

Aximili
- 28,626
- 56
- 157
- 216
0
votes
0 answers
What happens between a user clicking on`redirect URL` from one's email and `useVerificationToken()` call in a server in next-auth.?
I am creating a custom endpoint for resendEmailVerification that can be called in a client side using trpc.
1. This is my code on customresendEmailVerification endpoint:
{
const verificationTokenData = await…

Hitit
- 420
- 6
- 21
0
votes
0 answers
Internal Server Error When Deploying T3 App to AWS Amplify
I am trying to deploy a T3 NextJS app using TRPC, TailWind and Next Auth to AWS Amplify but when it builds and deploys, it says "Internal Server Error" on the webpage.
Here is a link to the page:…
0
votes
1 answer
Passing a react-query trpc query as a hook parameter
I'd like to make a generic hook that takes useQuery as a parameter and handles pagination.
That means my trpc query will always provide a skip and a take parameter. And it will always return a count in the response and an array of items.
function…

maxime
- 1,993
- 3
- 28
- 57
0
votes
0 answers
Update or create nested records using trpc/prisma
I have an prisma(postgresql)/trpc/next.js that uses referenced tables. So for example I have models that look like:
model Class {
id String @id
name String
lectures Lectures[]
}
model Lectures {
id String @id
text String
classId…

empire29
- 3,729
- 6
- 45
- 71
0
votes
0 answers
T3 stack: Mock TRPC api with jest
Im trying to mock the api to create my first test using the t3 stack. When I run the test it always tells me that api.transactions is undefined. I have a feeling that it is not configured properly to use the ~/ alias. However given the files below…

morraez
- 3
- 2
0
votes
0 answers
Backend refreshing every time there is a new page load T3 stack
So I have a T3 stack app in which /src/server/api/routers/RouterX.ts contains some info in an array that I have to maintain, but what happens is, every time there is a new page loaded, the server and client recompiles and I lose the data that was…

Techie5879
- 516
- 1
- 5
- 13
0
votes
1 answer
How can I get supabase auth user data on my tRPC context?
I'm making an application using the t3 stack: next, prisma, tRPC. I'm following along with a certain tutorial that uses Clerk for auth and I'm using Supabase Auth instead. In the file where I define my tRPC procedure (i.e. setting up…

crevulus
- 1,658
- 12
- 42
0
votes
0 answers
T3 project using Repo started failing with The table `main.XYZ` does not exist in the current database
I have been developing a T3 app (Next/Primsa/TRPC) and everything has been working well. I have a local SQLite DB for development. I havent worked on the app in a few weeks, but came back to it and when I try to load views that interact w/ the DB…

empire29
- 3,729
- 6
- 45
- 71
0
votes
1 answer
TypeError: Cannot read properties of null (reading 'useContext') when using useMutation with TRPC
I'm encountering an error in my Next.js application when trying to use the useMutation hook with TRPC (Typed RPC) library. The error message I'm getting is TypeError: Cannot read properties of null (reading 'useContext'). It seems to be related to…

ziyaDev
- 21
- 5
0
votes
0 answers
T3 stack, include the role in JWT using nextAuth , NextJS
I managed to include the user Role in the session token, but I'm sure there's is a better way (probably a more secure way) to implement this
callbacks: {
session: async ({ session, token }) => {
if (session.user && token.sub) {
session.user.id…

Fadlo
- 41
- 5
0
votes
1 answer
SyntaxError: Unexpected token '??=' after create-t3-app bootstrap
I ran the command npm create t3-app@latest to bootstrap a new next.js app. When I rant the command npm run dev to run the app, I got the following syntax error: SyntaxError: Unexpected token '??='.
It also printed a bunch of compiled looking code to…