Weird bug? Can't import {PrismaClient} from @prisma/client
The problem is only with typescript I guess, because the code I wrote works perfectly.
pic 1 - my schema
pic 2 - db.ts
pic 3 - api/hello.ts
pic 4 - api/hello response
Note: I created a few instances of Example model using prisma studio.
Note 2 : Project created with prisma + tailwind + pnpm + @/* + typescript
pic 1 - my schema
pic 2 - db.ts
pic 3 - api/hello.ts
pic 4 - api/hello response
Note: I created a few instances of Example model using prisma studio.
Note 2 : Project created with prisma + tailwind + pnpm + @/* + typescript




Solution
I updated my IDE(PyCharm - same thing as webstorm but with python support) from 2022.2 to 2023.1, and the bug is no more present


