Questions tagged [t3]

51 questions
5
votes
1 answer

T3 App `❌ Invalid environment variables:`

I'm using the T3-app (nextjs, tRPC, etc), and I don't know if these env variable errors just happened, or if I haven't noticed them before. However, I have all of the environment variables set in the .env file and have the following configuration…
Ygbh
  • 143
  • 6
4
votes
0 answers

Prisma error: Unsafe member access .create on an `any` value

I've ran this command for the T3 boilerplate: npm create t3-app@latest I then added only the bcrypt and fakerjs library for my prisma seed: { "name": "priority", "version": "0.1.0", "private": true, "scripts": { "build": "next build", …
Mathew
  • 318
  • 11
3
votes
1 answer

Profile id is missing in Google OAuth profile response - NextAuth

I'm following this tutorial on how to add roles in next-auth session. Unfortunately, when I add profile property, I get undefined behavior of the profile missing. There are also errors regarding typescript. Is this an error on my side, or is it a…
Vojin
  • 83
  • 7
2
votes
1 answer

Converting a React component to Typescript Element implicitly has an 'any' type because expression of type 'string | number' can't be used to index

I am converting a React component to typescript, I have an issue and I can not solve it any way, I have no idea what the reason is why I am getting on variantStyles[variant][color] an error. The types are mostly my attempts to create the types…
Klim Yadrintsev
  • 103
  • 1
  • 13
1
vote
1 answer

Network issues with Nextjs (T3 App) and Docker on production environment [TypeError: fetch failed at Object.fetch]

I have a Nextjs project using the create T3 app stacks (with the exception of using drizzle orm instead pf Prisma). On my development environment everything is working just fine Now I wanted to deploy my project on my linux server using…
Niklas
  • 11
  • 2
1
vote
1 answer

Send blob (image) from frontend to backend with nextjs and trpc (T3 stack)

I'm trying to send a picture of a leaflet map from the backend to the frontend where i use the leaflet-simple-map-screenshoter library for taking the image. This returns a blob which i want to send to the backend so I can save it into a PDF. I am…
1
vote
1 answer

Next throwing error: node::loader::ImportModuleDynamically

I am using the t3 stack and any project that uses next for starting the server, such as this one does, the program throughs this error. node[20481]: ../src/module_wrap.cc:599:MaybeLocal
Codex
  • 11
  • 1
1
vote
2 answers

Why can't npx prisma db push find my prisma schema?

I'm trying to setup my first t3 app and I have no idea how prisma works. Trying to set up my database following a tutorial and I cannot get my prisma schema to push. I follow the tutorial precisely and it still doesn't work. Command: $npx prisma db…
manski
  • 131
  • 1
  • 10
1
vote
3 answers

trpc v10 - Error: Query data cannot be undefined

New to trpc. Trying to get basic query functionality but it's not working. Not sure what I'm missing. In v9 it used createReactQueryHooks(), but it seems in v10 you only need to use createTRPCNext() if I'm not mistaken inside…
wongz
  • 3,255
  • 2
  • 28
  • 55
1
vote
2 answers

ExcelJs download xlsx file with tRPC router

I want to click the bottom and download the excel file, but I can't figure out why it is not working. the main problem is at tRPC router side. the tool I using: T3 ExcelJs tRPC router: .mutation("xlsx", { input: z.object({ id:…
Balius
  • 39
  • 11
1
vote
0 answers

Pgbouncer super slow

We've been using pgbouncer for couple days now and found out that the bouncer is super slow. I'd like to have your feedback on what is wrong with my bouncer configuration: Pressures table is 600k rows The query I use to test: SELECT * FROM Pressures…
0
votes
0 answers

syncing clerk with supabase using prisma + t3 stack and webhooks

I want to sync my user table to supabase when users authenticate with clerk. I'm using t3 stack and ngrok for pointing my localhost:3000 to and address. this is my user.ts file which is in src/pages/api/webhooks/user.ts : import type {…
javad
  • 13
  • 4
0
votes
1 answer

Next Auth with Google Provider: To confirm your identity, sign in with the same account you used originally

I'm using T3 Stack and next auth to authenticate with google, currently using mysql DB, but while trying to logging in I'm getting To confirm your identity, sign in with the same account you used originally. How can I resolve this? Thanks.
0
votes
1 answer

"TypeError: getStaticPaths is not a function" error in Nextjs

First of I am new in Nextjs and making a blog project using T3 Stack (Nextjs, Typescript, Prisma, tRPC). I get an error like this when I want to pull the post content with the id. I will add my codes as well. I would be glad if anyone can help…
Kalkhos
  • 27
  • 4
0
votes
0 answers

Typescript error with assigning array of objects TS Error (2345)

I'am using next.js with the T3 stack. The error in the provided code is related to the type incompatibility when updating the solved state using the setSolved function. TypeScript is raising a type error because the code is trying to update the…
1916eco
  • 1
  • 2
1
2 3 4