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