haris
haris
Explore posts from servers
TTCTheo's Typesafe Cult
Created by haris on 4/28/2023 in #questions
Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput.
pprisma:query SELECT `main`.`User`.`id`, `main`.`User`.`name`, `main`.`User`.`email`, `main`.`User`.`image` FROM `main`.`User` WHERE (`main`.`User`.`email` = ? AND 1=1) LIMIT ? OFFSET ?
[next-auth][error][adapter_error_createUser]
https://next-auth.js.org/errors#adapter_error_createuser
Invalid `prisma.user.create()` invocation:

{
data: {
name: '...',
email: '...',
image: '...',
emailVerified: null
~~~~~~~~~~~~~
}
}

Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput. Available args:

type UserCreateInput {
id?: String
name?: String | Null
email?: String | Null
image?: String | Null
sessions?: SessionCreateNestedManyWithoutUserInput
Account?: AccountCreateNestedManyWithoutUserInput
}

{
message: '\n' +
'Invalid `prisma.user.create()` invocation:\n' +
'\n' +
'{\n' +
' data: {\n' +
" name: '...',\n" +
" email: '...',\n" +
" image: '...',\n" +
' emailVerified: null\n' +
' ~~~~~~~~~~~~~\n' +
' }\n' +
'}\n' +
'\n' +
'Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput. Available args:\n' +
'\n' +
'type UserCreateInput {\n' +
' id?: String\n' +
' name?: String | Null\n' +
' email?: String | Null\n' +
' image?: String | Null\n' +
' sessions?: SessionCreateNestedManyWithoutUserInput\n' +
' Account?: AccountCreateNestedManyWithoutUserInput\n' +
'}\n' +
'\n',
stack: 'Error: \n' +
'Invalid `prisma.user.create()` invocation:\n' +
'\n' +
'{\n' +
' data: {\n' +
" name: '...',\n" +
" email: '...',\n" +
" image: '...',\n" +
' emailVerified: null\n' +
' ~~~~~~~~~~~~~\n' +
' }\n' +
'}\n' +
'\n' +
'Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput. Available args:\n' +
'\n' +
'type UserCreateInput {\n' +
' id?: String\n' +
' name?: String | Null\n' +
' email?: String | Null\n' +
' image?: String | Null\n' +
' sessions?: SessionCreateNestedManyWithoutUserInput\n' +
' Account?: AccountCreateNestedManyWithoutUserInput\n' +
'}\n' +
'\n' +
'\n' +
' at ti.validate (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:149:91)\n' +
' at Wr.createMessage (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:164:13655)\n' +
' at /Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:10933\n' +
' at runInChildSpan (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:70:25817)\n' +
' at t._executeRequest (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:10922)',
name: 'Error'
}
pprisma:query SELECT `main`.`User`.`id`, `main`.`User`.`name`, `main`.`User`.`email`, `main`.`User`.`image` FROM `main`.`User` WHERE (`main`.`User`.`email` = ? AND 1=1) LIMIT ? OFFSET ?
[next-auth][error][adapter_error_createUser]
https://next-auth.js.org/errors#adapter_error_createuser
Invalid `prisma.user.create()` invocation:

{
data: {
name: '...',
email: '...',
image: '...',
emailVerified: null
~~~~~~~~~~~~~
}
}

Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput. Available args:

type UserCreateInput {
id?: String
name?: String | Null
email?: String | Null
image?: String | Null
sessions?: SessionCreateNestedManyWithoutUserInput
Account?: AccountCreateNestedManyWithoutUserInput
}

{
message: '\n' +
'Invalid `prisma.user.create()` invocation:\n' +
'\n' +
'{\n' +
' data: {\n' +
" name: '...',\n" +
" email: '...',\n" +
" image: '...',\n" +
' emailVerified: null\n' +
' ~~~~~~~~~~~~~\n' +
' }\n' +
'}\n' +
'\n' +
'Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput. Available args:\n' +
'\n' +
'type UserCreateInput {\n' +
' id?: String\n' +
' name?: String | Null\n' +
' email?: String | Null\n' +
' image?: String | Null\n' +
' sessions?: SessionCreateNestedManyWithoutUserInput\n' +
' Account?: AccountCreateNestedManyWithoutUserInput\n' +
'}\n' +
'\n',
stack: 'Error: \n' +
'Invalid `prisma.user.create()` invocation:\n' +
'\n' +
'{\n' +
' data: {\n' +
" name: '...',\n" +
" email: '...',\n" +
" image: '...',\n" +
' emailVerified: null\n' +
' ~~~~~~~~~~~~~\n' +
' }\n' +
'}\n' +
'\n' +
'Unknown arg `emailVerified` in data.emailVerified for type UserCreateInput. Available args:\n' +
'\n' +
'type UserCreateInput {\n' +
' id?: String\n' +
' name?: String | Null\n' +
' email?: String | Null\n' +
' image?: String | Null\n' +
' sessions?: SessionCreateNestedManyWithoutUserInput\n' +
' Account?: AccountCreateNestedManyWithoutUserInput\n' +
'}\n' +
'\n' +
'\n' +
' at ti.validate (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:149:91)\n' +
' at Wr.createMessage (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:164:13655)\n' +
' at /Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:10933\n' +
' at runInChildSpan (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:70:25817)\n' +
' at t._executeRequest (/Users/polar/Code/yardpodcast.cc/yardpodcast.cc/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:10922)',
name: 'Error'
}
1 replies
TTCTheo's Typesafe Cult
Created by haris on 3/21/2023 in #questions
The inferred type cannot be named without a reference?
I am genuinely clueless on how to solve this error
The inferred type of 'init' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@sentry/core/types/integrations'. This is likely not portable. A type annotation is necessary.
The inferred type of 'init' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@sentry/core/types/integrations'. This is likely not portable. A type annotation is necessary.
https://haste.polars.cloud/dutixohodu.typescript happens when i export init
2 replies
TTCTheo's Typesafe Cult
Created by haris on 10/3/2022 in #questions
What's the best way to do real time with T3?
I was thinking just using webhooks with the frontend but I'm not sure.
6 replies