PrismaP
Prisma10mo ago
9 replies
grace charles

Anyone have Prisma ORM working with React Router 7? I get Internal server error

Following the documentation here https://www.prisma.io/docs/guides/react-router-7 except using my own postgres instance rather than hosted cloud version. But as soon as I use import prisma from "~/lib/prisma" in a route I get [vite] Internal server error: exports is not defined on ...app/generated/prisma/index-browser.js:4:23). RR 7.5.0. Prisma 6.6.0.
Learn how to use Prisma ORM and Prisma Postgres in a React Router 7 app.
How to use Prisma ORM and Prisma Postgres with React Router 7 | Pri...
Was this page helpful?