DrizzyDrake
DrizzyDrake
Explore posts from servers
TTCTheo's Typesafe Cult
Created by DrizzyDrake on 8/11/2024 in #questions
trpc prefetch fails when building app
tRPC fails to get the data when it is build the application as the tRPC server cannot run when building. Any thoughts on how to fix this issue?
export default async function Page() {
void api.catalyst.auth.state.prefetch();
// ...
}
export default async function Page() {
void api.catalyst.auth.state.prefetch();
// ...
}
5 replies
TTCTheo's Typesafe Cult
Created by DrizzyDrake on 3/24/2024 in #questions
Module not found: Can't resolve '@/components/site/footer' on Vercel
In development this works perfectly fine and it renders correctly, however when I deploy to vercel it throws this error:
Module not found: Can't resolve '@/components/site/footer'
Module not found: Can't resolve '@/components/site/footer'
Here is my tsconfig.json with the path alias set up as "@/*": ["./src/*"]:
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,

/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"checkJs": true,

/* Bundled projects */
"lib": ["dom", "dom.iterable", "ES2022"],
"noEmit": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "preserve",
"plugins": [{ "name": "next" }],
"incremental": true,

/* Path Aliases */
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": [
".eslintrc.cjs",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.cjs",
"**/*.js",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
}
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,

/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"checkJs": true,

/* Bundled projects */
"lib": ["dom", "dom.iterable", "ES2022"],
"noEmit": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "preserve",
"plugins": [{ "name": "next" }],
"incremental": true,

/* Path Aliases */
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": [
".eslintrc.cjs",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.cjs",
"**/*.js",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
}
4 replies
TTCTheo's Typesafe Cult
Created by DrizzyDrake on 3/23/2024 in #questions
Get a list of all files in UploadThing
I looked through some of the documentation for UploadThing, and I see how to upload a file, but what about downloading or getting a list of all the files that are uploaded?
3 replies