VS Code imports PrismaClient from wrong folder

VS Code auto imports PrismaClient from @prisma/client/extension instead from the generated folder. I ran npx prisma generate in the console before that. I have Prisma extension installed. I get
import { PrismaClient } from "@prisma/client/extension"
import { PrismaClient } from "@prisma/client/extension"
instead of
import { PrismaClient } from "../generated/prisma/index";
import { PrismaClient } from "../generated/prisma/index";
when importing. Intellisense works for the other PrismaClient, not for the one from @prisma/client/extension.
1 Reply
Prisma AI Help
You selected to wait for the human sages. They'll share their wisdom soon. Grab some tea while you wait, or check out #ask-ai if you'd like a quick chat with the bot anyway!

Did you find this page helpful?