Skip to content

Module '"@prisma/client"' has no exported member 'PrismaClient'. #13412

Description

@thany

Bug description

I'm getting this error in VScode after following this example's getting started steps, in the provided seed.ts file.

image

Other imports work just fine.
I have never used Prisma before. I'm just following the steps listed.

This problem popped up after the step npm i, which tells me either the example is set up wrong, or something specific on my computer is bollocksing up something. No idea. I assume these examples have been tested at some point, so I guess it must be something on my end. Otoh, I have never had this problem with typescript packages if they properly export their things.

How to reproduce

Literally follow this:
https://github.com/prisma/prisma-examples/tree/latest/typescript/rest-nextjs-api-routes-auth

Expected behavior

No errors.

Prisma information

I really don't think it's relevant what the schema is. If it is, please have a look at the linked example 😉

Environment & setup

  • OS: Windows 10
  • Database: Sqlite
  • Node.js version: 16.14.0

Prisma Version

3.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions