61 questions
4
votes
5
answers
16k
views
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 ...
4
votes
1
answer
10k
views
How to fix the Invalid environment variables error in T3 Stack
I have downloaded the repo from Github and trying to run in my local machine.
Installed cross-env package.
----------- Error -----------------
ERROR (console/15295 on Narendras-MacBook-Air.local): ❌ ...
0
votes
0
answers
37
views
T3 Stack Page Routing Boilerplate does not work
I am trying to create an app using the T3 stack. I am following the instructions in the T3 documentation which start by telling us to use the command npm create t3-app@latest. After doing that, we get ...
-3
votes
2
answers
84
views
Why doesn't Tailwind CSS justify-between work?
In my code, justify between does not work.
Here is the code:
import { Container } from 'postcss'
import React from 'react'
export default function Navbar() {
return (
<>
<nav ...
10
votes
5
answers
9k
views
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 ....
-1
votes
1
answer
856
views
New to prisma, are these models feasible? T3 stack app [closed]
So I want to make an app where a user can create a 'Household' where they can invite other members of their family to have a shared database where they can store items in their pantry/kitchen.
The ...
1
vote
1
answer
422
views
tRPC - nextjs - app router - build fail on timeout error when using useSuspenseQuery
I created T3-app and my build fail on timeout error.
If I change this line:
const [leads] = api.lead.getLeads.useSuspenseQuery();
to
const { data: leads } = api.lead.getLeads.useQuery();
the build ...
0
votes
1
answer
203
views
Configuring NextJs (T3 create) App router to use Auth0
I have just started rebuilding a NextJs app using npm create t3 latest. I've selected typescript, trcp tailwind and prisma ORM.
I don't want to use NextAuth because I have everything I need in Auth0 ...
0
votes
2
answers
354
views
T3 Stack: ReferenceError: Cannot access 'createCaller' before initialization
I want to use tRPC with mutations to upload a file in Next Js / T3 Stack with Supabase.
But no POST requests are working. The default 'post' mutation from the T3 stack template also does not work.
...
0
votes
1
answer
210
views
How to prevent stack attributes on tRPC response?
I'm building a POC using T3 Framework which uses tRPC and can't find a way to prevent the stack propriety on the HTTP response.
I tried to set NODE_ENV to "production" and still get the ...
1
vote
3
answers
7k
views
How to use "onSuccess" in useQuery in tRPC v10?
I am checking out trpc with t3 stack and I want to update a state when useQuery is successful.
and I am getting typescript error on the frontend,
Argument of type '{ onSuccess: (shoppingList: ...
2
votes
0
answers
602
views
⨯ Error: No native build was found for platform=linux arch=x64 runtime=node
I am trying to deploy my create-t3 application to Vercel, the build is successful but when I go to the website the server has a 500 internal server error and the logs throw an error like this:
⨯ Error:...
0
votes
1
answer
929
views
use next.config.js environment variable from t3-env in nextjs
I am using t3-env package to typesafe my environment variable which is correctly working for .env file. But I have saved some env variables inside next.config.js also. How can I typesafe my next....
0
votes
1
answer
179
views
How do i call a custom TRPCRouter on approuter in nextjs
I am having trouble adapting some code from pages to the app router in nextjs, i have this stripe trpc router
export const appRouter = createTRPCRouter({
db: userRouter,
account: accountRouter,
...
1
vote
1
answer
2k
views
Invalid redirect when using Auth.js (v5) with Docker in Next.JS
Did anyone successfully implement the latest Auth.js version in production with Docker? I am using the t3-stack (tRPC, Auth.JS, Prisma, Next.JS).
I have tried to upgrade to the beta version with the ...