-1

import{ PrismaClient }from '../app/generated/prisma'

I see red underline for this line in my vs code and also having a error "module can be found" something like that in my terminal.

But it worked when i changed the import statement to below path adding "client" because the client.ts file had exported the prisma and prismaclient in it so i tried it and it worked.

import { PrismaClient, Prisma } from "../app/generated/prisma/client";

Is there anything more i need to know about it?

Why that original path does not work anymore even that is in the official site?

1
  • In your prisma schema, what type of generator are you using? Commented Nov 10 at 9:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.