"Property 'session' is missing in type" erro on brand new generated project with [email protected] #4078
-
I'm following the steps from https://blitzjs.com/docs/get-started:
and I met one issue that vscode LSP plugin told me that session didn't be declared in db instance which is initialized by enhancePrisma from blitz. may i know whether you met this issue before? DB related code is as follows: import { enhancePrisma } from "blitz"
import { PrismaClient } from "@prisma/client"
const EnhancedPrisma = enhancePrisma(PrismaClient)
export * from "@prisma/client"
const db = new EnhancedPrisma()
export default db |
Beta Was this translation helpful? Give feedback.
Answered by
Gnosnay
Feb 3, 2023
Replies: 1 comment
-
okay i got it. i modified DB schema and remove the session table. that is the reason. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gnosnay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
okay i got it. i modified DB schema and remove the session table. that is the reason.