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.
4 Replies
Prisma AI Help
Prisma AI Help5mo ago
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!
Swagheili
SwagheiliOP4mo ago
Anyone??
Nurul
Nurul4mo ago
Hey! Are you referring to auto importing by VS Code? Like you just write PrismaClient in your file and the auto import is referring to wrong location?
Swagheili
SwagheiliOP4mo ago
Yes.

Did you find this page helpful?