You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling the extendedWhereUnique Prisma preview feature the PrismaStorage function in blitz-server.ts throws a type error.
Paste all your error logs here:
Type error: Argument of type 'PrismaClient<PrismaClientOptions, unknown, RejectOnNotFound | RejectPerOperation | undefined> & EnhancedPrismaClientAddedMethods' is not assignable to parameter of type 'PrismaClientWithSession'.
The types of 'session.update' are incompatible between these types.
Type '<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs>) => Prisma__SessionClient<SessionGetPayload<T>, never>' is not assignable to type '(args: { data: Partial<SessionModel>; where: { handle?: string | undefined; }; }) => Promise<SessionModel>'.
Types of parameters 'args' and 'args' are incompatible.
Type '{ data: Partial<SessionModel>; where: { handle?: string | undefined; }; }' is not assignable to type '{ select?: SessionSelect | null | undefined; include?: SessionInclude | null | undefined; data: (Without<SessionUpdateInput, SessionUncheckedUpdateInput> & SessionUncheckedUpdateInput) | (Without<...> & SessionUpdateInput); where: SessionWhereUniqueInput; }'.
Types of property 'where' are incompatible.
Type '{ handle?: string | undefined; }' is not assignable to type 'SessionWhereUniqueInput'.
Type '{ handle?: string | undefined; }' is not assignable to type '{ id: string | number; handle: string | number; } & { id?: number | undefined; handle?: string | undefined; AND?: Enumerable<SessionWhereInput> | undefined; ... 10 more ...; userId?: number | ... 2 more ... | undefined; }'.
Property 'id' is missing in type '{ handle?: string | undefined; }' but required in type '{ id: string | number; handle: string | number; }'.
What is the problem?
When enabling the extendedWhereUnique Prisma preview feature the PrismaStorage function in blitz-server.ts throws a type error.
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
Blitz version: 2.0.0-beta.20 (local)
Linux 6.0 | linux-x64 | Node: v16.18.0
Package manager: npm
System:
OS: Linux 6.0 Manjaro Linux
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
Memory: 16.03 GB / 31.10 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.18.0 - /tmp/xfs-d890acf3/node
Yarn: 3.3.0 - /tmp/xfs-d890acf3/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
npmPackages:
@blitzjs/auth: 2.0.0-beta.20 => 2.0.0-beta.20
@blitzjs/next: 2.0.0-beta.20 => 2.0.0-beta.20
@blitzjs/rpc: 2.0.0-beta.20 => 2.0.0-beta.20
@prisma/client: ^4.8.0 => 4.8.0
blitz: 2.0.0-beta.20 => 2.0.0-beta.20
next: 12.2.5 => 12.2.5
prisma: ^4.8.0 => 4.8.0
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
typescript: ^4.8.4 => 4.9.4
The text was updated successfully, but these errors were encountered: