PrismaP
Prisma6mo ago
3 replies
gkline

TypeError: Invalid enum value: __esModule

TypeError: Invalid enum value: __esModule
❯ Object.get node_modules/@prisma/client/runtime/library.js:131:902

On a branch I'm working on, I've started to encounter this error in one specific test file. It seems to fire while importing the enums in the test file, the test hasn't even started yet. I can confirm the enums being used exist in our node_modules/.prisma/client/index.d.ts

All of our other test files work fine. Has anyone ever seen this before or know generally what could be causing this?
CleanShot_2025-08-10_at_11.58.442x.png
Was this page helpful?