Skip to content

The PrismaClient import seems to be wrong #6993

@ckhatton-pvfscaffolding

Description

/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/docsDocumentation creation, updates or corrections

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions