docs icon indicating copy to clipboard operation
docs copied to clipboard

The PrismaClient import seems to be wrong

Open ckhatton-pvfscaffolding opened this issue 5 months ago • 0 comments

/content/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/250-querying-the-database-typescript-postgresql.mdx (link)

Shouldn't the PrismaClient import be import { PrismaClient } from './generated/prisma', and not import { PrismaClient } from '@prisma/client'?

Following the guide I get the error:

  • Module '"@prisma/client"' has no exported member 'PrismaClient' in VS Code.
  • error: Cannot find module '.prisma/client/default' from ... in the terminal.

This is after making sure to run npx prisma generate.


This would apply for the other pages that are not TypeScript.

ckhatton-pvfscaffolding avatar Jun 26 '25 14:06 ckhatton-pvfscaffolding