Hycord | @ When Replying
Hycord | @ When Replying
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 6/28/2023 in #questions
nextjs tailwind grid causing scrolling
2 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 5/10/2023 in #questions
Next 13.4.1 Builds Fine On Local System But Fails On Vercel
22 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 4/18/2023 in #questions
dockerizing typescript
I would like to be able to build my typescript app into a docker file which I can push to a private registry and then pull on my server so I can manage the process easier. What registry should I use? Can I deploy docker files on Vercel if I have a web app inside it? What do I need to do differently for a turbo repo monorepo?
4 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 4/17/2023 in #questions
Tailwind Truncate Messes With Layout
<div className="flex min-h-screen min-w-screen bg-zinc-700">
<div className="max-h-screen flex-[2] border-x border-solid border-black flex flex-col relative">
<div className="flex-grow-[10] h-[85%] flex flex-col items-center p-0 m-0 gap-2 pt-2 overflow-y-scroll hide-scrollbar">
{
["📊 Statistics", "🌍 US History III", "📘 English III",].map((b, i, a) => (
<>
<div key={i} onClick={() => void setSelectedClass(i)} className={`${selectedClass == i ? "border-black border-solid border-[1px]" : "border-none"} bg-opacity-0 w-[90%] py-6 flex items-center justify-center overflow-hidden bg-white hover:bg-opacity-5 cursor-pointer rounded-md h-10`}>{b}</div>
{a.length - 1 == i ? (<></>) : <div className={`w-full border-t border-dashed border-black`}></div>}
</>
))
}
</div>
<div className="w-full flex-grow-[2] py-2 border-t border-solid border-black flex flex-col items-center justify-center gap-2 overflow-hidden bottom-0 sticky bg-zinc-700 ">
<span>
<Image width="16" height="16" src={session.data.user.image ?? ""} alt="PFP" className="inline w-6 h-6 rounded-full mx-2" /> {session.data.user.name}
</span>
<button className="border border-solid border-red-500 bg-red-500 hover:bg-opacity-70 bg-opacity-50 rounded-md p-1 px-2" onClick={() => void signOut()}>Sign out</button>
</div>
</div>
<div className="max-h-screen flex-[2] border-x border-solid border-black flex flex-col relative">
<div className="w-full flex-grow-[2] py-2 border-b border-solid border-black flex flex-col items-center justify-center gap-2 overflow-hidden top-0 sticky bg-zinc-700 ">
<input type="text" className="bg-zinc-800 bg-opacity-50 border-solid border-zinc-900 border-[.1rem] rounded-full pl-2" placeholder="Search..." />
<div className={`border-black border-solid border-[1px] bg-opacity-0 w-[90%] py-3 flex items-center justify-center overflow-hidden bg-white hover:bg-opacity-5 cursor-pointer rounded-md h-10`}>New Note +</div>
</div>
<div className="flex-grow-[10] h-[85%] flex flex-col items-center p-0 m-0 gap-2 pt-2 overflow-y-scroll hide-scrollbar">
{
[
"WW1",
"WW2",
"Korean War",
"Vietnam War",
"Treaty of Versailles",
"Battle of the Somme",
"Lusitania sinking",
"Assassination of Archduke Franz Ferdinand",
"Gallipoli Campaign",
"Holocaust",
"D-Day"
].map((b, i, a) => (
<>
<div key={i} onClick={() => void setSelectedNote(i)} className={`${selectedNote == i ? "border-black border-solid border-[1px]" : "border-none"} bg-opacity-0 w-[90%] py-5 flex items-center justify-center overflow-hidden bg-white hover:bg-opacity-5 cursor-pointer rounded-md h-10`}><span className="overflow-hidden text-clip w-[50%] bg-red-300 whitespace-nowrap">{b}</span></div>
{a.length - 1 == i ? (<></>) : <div className={`w-full border-t border-dashed border-black`}></div>}
</>
))
}
</div>
</div>
<div className="p-0 m-0 min-h-screen flex-[7] border-x border-solid border-black">
</div>
</div>
<div className="flex min-h-screen min-w-screen bg-zinc-700">
<div className="max-h-screen flex-[2] border-x border-solid border-black flex flex-col relative">
<div className="flex-grow-[10] h-[85%] flex flex-col items-center p-0 m-0 gap-2 pt-2 overflow-y-scroll hide-scrollbar">
{
["📊 Statistics", "🌍 US History III", "📘 English III",].map((b, i, a) => (
<>
<div key={i} onClick={() => void setSelectedClass(i)} className={`${selectedClass == i ? "border-black border-solid border-[1px]" : "border-none"} bg-opacity-0 w-[90%] py-6 flex items-center justify-center overflow-hidden bg-white hover:bg-opacity-5 cursor-pointer rounded-md h-10`}>{b}</div>
{a.length - 1 == i ? (<></>) : <div className={`w-full border-t border-dashed border-black`}></div>}
</>
))
}
</div>
<div className="w-full flex-grow-[2] py-2 border-t border-solid border-black flex flex-col items-center justify-center gap-2 overflow-hidden bottom-0 sticky bg-zinc-700 ">
<span>
<Image width="16" height="16" src={session.data.user.image ?? ""} alt="PFP" className="inline w-6 h-6 rounded-full mx-2" /> {session.data.user.name}
</span>
<button className="border border-solid border-red-500 bg-red-500 hover:bg-opacity-70 bg-opacity-50 rounded-md p-1 px-2" onClick={() => void signOut()}>Sign out</button>
</div>
</div>
<div className="max-h-screen flex-[2] border-x border-solid border-black flex flex-col relative">
<div className="w-full flex-grow-[2] py-2 border-b border-solid border-black flex flex-col items-center justify-center gap-2 overflow-hidden top-0 sticky bg-zinc-700 ">
<input type="text" className="bg-zinc-800 bg-opacity-50 border-solid border-zinc-900 border-[.1rem] rounded-full pl-2" placeholder="Search..." />
<div className={`border-black border-solid border-[1px] bg-opacity-0 w-[90%] py-3 flex items-center justify-center overflow-hidden bg-white hover:bg-opacity-5 cursor-pointer rounded-md h-10`}>New Note +</div>
</div>
<div className="flex-grow-[10] h-[85%] flex flex-col items-center p-0 m-0 gap-2 pt-2 overflow-y-scroll hide-scrollbar">
{
[
"WW1",
"WW2",
"Korean War",
"Vietnam War",
"Treaty of Versailles",
"Battle of the Somme",
"Lusitania sinking",
"Assassination of Archduke Franz Ferdinand",
"Gallipoli Campaign",
"Holocaust",
"D-Day"
].map((b, i, a) => (
<>
<div key={i} onClick={() => void setSelectedNote(i)} className={`${selectedNote == i ? "border-black border-solid border-[1px]" : "border-none"} bg-opacity-0 w-[90%] py-5 flex items-center justify-center overflow-hidden bg-white hover:bg-opacity-5 cursor-pointer rounded-md h-10`}><span className="overflow-hidden text-clip w-[50%] bg-red-300 whitespace-nowrap">{b}</span></div>
{a.length - 1 == i ? (<></>) : <div className={`w-full border-t border-dashed border-black`}></div>}
</>
))
}
</div>
</div>
<div className="p-0 m-0 min-h-screen flex-[7] border-x border-solid border-black">
</div>
</div>
When adding truncate or whitespace-nowrap to the span in the second column, it makes the div wrapping it super wide
11 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 4/16/2023 in #questions
NextAuth Google Auth provided value for column is too long
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for
[next-auth][error][adapter_error_linkAccount]
https://next-auth.js.org/errors#adapter_error_linkaccount
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for {
message: '\n' +
'Invalid `prisma.account.create()` invocation:\n' +
'\n' +
'\n' +
"The provided value for the column is too long for the column's type. Column: for",
stack: 'Error: \n' +
'Invalid `prisma.account.create()` invocation:\n' +
'\n' +
'\n' +
"The provided value for the column is too long for the column's type. Column: for\n" +
' at Zr.handleRequestError (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:171:6414)\n' +
' at Zr.handleAndLogRequestError (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:171:5948)\n' +
' at Zr.request (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:171:5786)\n' +
' at async t._request (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:174:10455)',
name: 'Error'
}
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for Error:
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for
at Zr.handleRequestError (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:171:6414)
at Zr.handleAndLogRequestError (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:171:5948)
at Zr.request (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:171:5786)
at async t._request (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:174:10455) {
name: 'LinkAccountError',
code: 'P2000'
}
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for
[next-auth][error][adapter_error_linkAccount]
https://next-auth.js.org/errors#adapter_error_linkaccount
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for {
message: '\n' +
'Invalid `prisma.account.create()` invocation:\n' +
'\n' +
'\n' +
"The provided value for the column is too long for the column's type. Column: for",
stack: 'Error: \n' +
'Invalid `prisma.account.create()` invocation:\n' +
'\n' +
'\n' +
"The provided value for the column is too long for the column's type. Column: for\n" +
' at Zr.handleRequestError (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:171:6414)\n' +
' at Zr.handleAndLogRequestError (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:171:5948)\n' +
' at Zr.request (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:171:5786)\n' +
' at async t._request (C:\\Users\\masen\\code\\classcrate\\node_modules\\.pnpm\\@prisma+client@4.11.0_prisma@4.11.0\\node_modules\\@prisma\\client\\runtime\\library.js:174:10455)',
name: 'Error'
}
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for Error:
Invalid `prisma.account.create()` invocation:


The provided value for the column is too long for the column's type. Column: for
at Zr.handleRequestError (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:171:6414)
at Zr.handleAndLogRequestError (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:171:5948)
at Zr.request (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:171:5786)
at async t._request (C:\Users\masen\code\classcrate\node_modules\.pnpm\@prisma+client@4.11.0_prisma@4.11.0\node_modules\@prisma\client\runtime\library.js:174:10455) {
name: 'LinkAccountError',
code: 'P2000'
}
4 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 4/13/2023 in #questions
Basic Data Flow For tRPC, Prisma, and an External API based on NextAuth data
I want to display a list of objects from a database based on the current user (already done) Once the user selects the object, how should I go about fetching more data such as detailed information on that selection? How should I properly set up fetching so that I never get stale data and the UI is in sync? I also would like to use a mutation for submitting a form, anything special I should keep in mind?
12 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 4/7/2023 in #questions
Prisma breaks when on production server (dedicated server, backend app)
const fetched = await this.prisma.xpMultiplier.findFirst({
where: {
type,
selectorId
},
});
const fetched = await this.prisma.xpMultiplier.findFirst({
where: {
type,
selectorId
},
});
This compiles and runs just fine on my local machine, no errors whatsoever. So I push my schema, merge my deploy request on planet scale, pull the code, and start the app then I get this error:
discord:start: cache miss, executing f4b4a032f7fb9c18
discord:start:
discord:start: > discord@0.0.1 start /home/ubuntu/app/apps/discord
discord:start: > node dist/index.js
discord:start:
discord:start: ~discord-client ] Ready!
discord:start: Getting account for user 9ce86584-2888-4f5a-96e1-84a7c107762d
discord:start: node:events:491
discord:start: throw er; // Unhandled 'error' event
discord:start: ^
discord:start:
discord:start: TypeError: Cannot read properties of undefined (reading 'findFirst')
discord:start: at XPModifierManager.<anonymous> (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:26:60)
discord:start: at Generator.next (<anonymous>)
discord:start: at /home/ubuntu/app/packages/database/dist/XPModifierManager.js:8:71
discord:start: at new Promise (<anonymous>)
discord:start: at __awaiter (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:4:12)
discord:start: at XPModifierManager.get (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:24:42)
discord:start: at Object.get (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:79:37)
discord:start: at /home/ubuntu/app/apps/discord/dist/index.js:83:68
discord:start: at Generator.next (<anonymous>)
discord:start: at fulfilled (/home/ubuntu/app/apps/discord/dist/index.js:5:58)
discord:start: Emitted 'error' event on DiscordClient instance at:
discord:start: at emitUnhandledRejectionOrErr (node:events:394:10)
discord:start: at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
discord:start:
discord:start: Node.js v18.15.0
discord:start:  ELIFECYCLE  Command failed with exit code 1.
discord:start: ERROR: command finished with error: command (/home/ubuntu/app/apps/discord) pnpm run start exited (1)
discord:start: cache miss, executing f4b4a032f7fb9c18
discord:start:
discord:start: > discord@0.0.1 start /home/ubuntu/app/apps/discord
discord:start: > node dist/index.js
discord:start:
discord:start: ~discord-client ] Ready!
discord:start: Getting account for user 9ce86584-2888-4f5a-96e1-84a7c107762d
discord:start: node:events:491
discord:start: throw er; // Unhandled 'error' event
discord:start: ^
discord:start:
discord:start: TypeError: Cannot read properties of undefined (reading 'findFirst')
discord:start: at XPModifierManager.<anonymous> (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:26:60)
discord:start: at Generator.next (<anonymous>)
discord:start: at /home/ubuntu/app/packages/database/dist/XPModifierManager.js:8:71
discord:start: at new Promise (<anonymous>)
discord:start: at __awaiter (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:4:12)
discord:start: at XPModifierManager.get (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:24:42)
discord:start: at Object.get (/home/ubuntu/app/packages/database/dist/XPModifierManager.js:79:37)
discord:start: at /home/ubuntu/app/apps/discord/dist/index.js:83:68
discord:start: at Generator.next (<anonymous>)
discord:start: at fulfilled (/home/ubuntu/app/apps/discord/dist/index.js:5:58)
discord:start: Emitted 'error' event on DiscordClient instance at:
discord:start: at emitUnhandledRejectionOrErr (node:events:394:10)
discord:start: at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
discord:start:
discord:start: Node.js v18.15.0
discord:start:  ELIFECYCLE  Command failed with exit code 1.
discord:start: ERROR: command finished with error: command (/home/ubuntu/app/apps/discord) pnpm run start exited (1)
41 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 4/2/2023 in #questions
Typing Prisma Wrapper Function
public async getUser(
{ provider, accountId }: Partial<{ provider: string; accountId: string }>,
include?: Prisma.UserInclude
) {
return await this.prisma.user.findFirst({
where: {
accounts: {
some: {
accountId,
provider,
},
},
},
include: include,
});
}
public async getUser(
{ provider, accountId }: Partial<{ provider: string; accountId: string }>,
include?: Prisma.UserInclude
) {
return await this.prisma.user.findFirst({
where: {
accounts: {
some: {
accountId,
provider,
},
},
},
include: include,
});
}
How can I type the return value of this to reflect what is passed into include?
17 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 3/31/2023 in #questions
Prisma Unable To Query Indexed Fields
47 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 3/25/2023 in #questions
Help with data-design for a personal note taking app for school (possibly using auth, idk)
I would like to make a personal note taking app using t3, in which I can keep my notes grouped per-class - full-text search, or maybe like a tag system where I have a field that is full-searched (would be formatted like statistics, creating a confidence interval or statistics, interpreting a confidence interval) - support complex math equations - support markdown or some other formatting for taking notes - if possible, able to insert custom drawings using my phone or touchscreen laptop
11 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 3/25/2023 in #questions
inferred type of appRouter cannot be named without a reference to server/node_modules/superjson
web:build: ./node_modules/server/src/routes/_app.ts:4:14
web:build: Type error: The inferred type of 'appRouter' cannot be named without a reference to 'server/node_modules/superjson'. This is likely not portable. A type annotation is necessary.
web:build:
web:build: 2 | import { todoRouter } from './todo';
web:build: 3 |
web:build: > 4 | export const appRouter = router({
web:build: | ^
web:build: 5 | todo: todoRouter,
web:build: 6 | });
web:build: 7 |
web:build:  ELIFECYCLE  Command failed with exit code 1.
web:build: ERROR: command finished with error: command (C:\Users\masen\code\projects\spice\apps\web) pnpm run build exited (1)
web:build: ./node_modules/server/src/routes/_app.ts:4:14
web:build: Type error: The inferred type of 'appRouter' cannot be named without a reference to 'server/node_modules/superjson'. This is likely not portable. A type annotation is necessary.
web:build:
web:build: 2 | import { todoRouter } from './todo';
web:build: 3 |
web:build: > 4 | export const appRouter = router({
web:build: | ^
web:build: 5 | todo: todoRouter,
web:build: 6 | });
web:build: 7 |
web:build:  ELIFECYCLE  Command failed with exit code 1.
web:build: ERROR: command finished with error: command (C:\Users\masen\code\projects\spice\apps\web) pnpm run build exited (1)
4 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 12/18/2022 in #questions
CT3A redirect to deeper route
So I have a /dashboard/[setting].tsx page which I use to load the dashboard settings, blah blah you get the idea. How do I redirect /dashboard to /dashboard/${settingId} (I have settingId already and it is safe to assume it will be a valid URL)
5 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 12/15/2022 in #questions
CT3A tRPC make List of dynamic fetches
I have a list of discord guild id's, how should I go about dynamically requesting the guild's information from discord? (Not asking for discord-specific implementation. My question would be the same if you wanted to, for example, convert a user-id to username using db
3 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 12/15/2022 in #questions
I have information that is hidden to non developers, how should I handle displaying that that data i
10 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 12/14/2022 in #questions
TRPC List Of Editable fields linked to unique database field
Using the full t3 stack, how do I have a list of inputs to display and link one of each document in a prisma query (just an array of objects)
1 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 12/11/2022 in #questions
Tailwind stop popuop from flowing off screen
I have a dropdown component, and when the popup comes up when the main button is close to one side of the screen it flows off the page. I want it to get "bumped" over so it touches the side of the screen when this is the case
5 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 12/11/2022 in #questions
T3 stack issues with auth
Getting the following error. I can't find any resources online for it
[next-auth][error][adapter_error_getSessionAndUser]
https://next-auth.js.org/errors#adapter_error_getsessionanduser Cannot read properties of undefined (reading 'findUnique') {
message: "Cannot read properties of undefined (reading 'findUnique')",
stack: "TypeError: Cannot read properties of undefined (reading 'findUnique')\n" +
' at getSessionAndUser (/home/hycord/code/typescript/web/banappeals/node_modules/@next-auth/prisma-adapter/dist/index.js:24:52)\n' +
' at _callee2$ (/home/hycord/code/typescript/web/banappeals/node_modules/next-auth/core/errors.js:365:29)\n' +
' at tryCatch (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)\n' +
' at Generator.<anonymous> (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)\n' +
' at Generator.next (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)\n' +
' at asyncGeneratorStep (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)\n' +
' at _next (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)\n' +
' at /home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7\n' +
' at new Promise (<anonymous>)\n' +
' at /home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12',
name: 'TypeError'
}
}
[next-auth][error][adapter_error_getSessionAndUser]
https://next-auth.js.org/errors#adapter_error_getsessionanduser Cannot read properties of undefined (reading 'findUnique') {
message: "Cannot read properties of undefined (reading 'findUnique')",
stack: "TypeError: Cannot read properties of undefined (reading 'findUnique')\n" +
' at getSessionAndUser (/home/hycord/code/typescript/web/banappeals/node_modules/@next-auth/prisma-adapter/dist/index.js:24:52)\n' +
' at _callee2$ (/home/hycord/code/typescript/web/banappeals/node_modules/next-auth/core/errors.js:365:29)\n' +
' at tryCatch (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)\n' +
' at Generator.<anonymous> (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)\n' +
' at Generator.next (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)\n' +
' at asyncGeneratorStep (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)\n' +
' at _next (/home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)\n' +
' at /home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7\n' +
' at new Promise (<anonymous>)\n' +
' at /home/hycord/code/typescript/web/banappeals/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12',
name: 'TypeError'
}
}
49 replies