P
Prisma2mo ago
salzar

Module not found errors after switching to 6.7.0 rust free pg

Hi, I keep getting these errors when using the new rust free pg version of Prisma:
⨯ ./lib/generated/prisma/client.ts:21:1
Module not found: Can't resolve './enums.js'
19 | import * as Prisma from "./internal/prismaNamespace.js"
20 |
> 21 | export * as $Enums from './enums.js'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 | /**
23 | * ## Prisma Client
24 | *



https://nextjs.org/docs/messages/module-not-found



./lib/generated/prisma/client.ts:18:1
Module not found: Can't resolve './internal/class.js'
16 | import * as runtime from "@prisma/client/runtime/client"
17 | import * as $Enums from "./enums.js"
> 18 | import * as $Class from "./internal/class.js"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 | import * as Prisma from "./internal/prismaNamespace.js"
20 |
21 | export * as $Enums from './enums.js'



https://nextjs.org/docs/messages/module-not-found



./lib/generated/prisma/client.ts:19:1
Module not found: Can't resolve './internal/prismaNamespace.js'
17 | import * as $Enums from "./enums.js"
18 | import * as $Class from "./internal/class.js"
> 19 | import * as Prisma from "./internal/prismaNamespace.js"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 |
21 | export * as $Enums from './enums.js'
22 | /**



https://nextjs.org/docs/messages/module-not-found
⨯ ./lib/generated/prisma/client.ts:21:1
Module not found: Can't resolve './enums.js'
19 | import * as Prisma from "./internal/prismaNamespace.js"
20 |
> 21 | export * as $Enums from './enums.js'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 | /**
23 | * ## Prisma Client
24 | *



https://nextjs.org/docs/messages/module-not-found



./lib/generated/prisma/client.ts:18:1
Module not found: Can't resolve './internal/class.js'
16 | import * as runtime from "@prisma/client/runtime/client"
17 | import * as $Enums from "./enums.js"
> 18 | import * as $Class from "./internal/class.js"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 | import * as Prisma from "./internal/prismaNamespace.js"
20 |
21 | export * as $Enums from './enums.js'



https://nextjs.org/docs/messages/module-not-found



./lib/generated/prisma/client.ts:19:1
Module not found: Can't resolve './internal/prismaNamespace.js'
17 | import * as $Enums from "./enums.js"
18 | import * as $Class from "./internal/class.js"
> 19 | import * as Prisma from "./internal/prismaNamespace.js"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 |
21 | export * as $Enums from './enums.js'
22 | /**



https://nextjs.org/docs/messages/module-not-found
Any idea how I can fix this? Thanks!
5 Replies
Prisma AI Help
Prisma AI Help2mo ago
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
salzar
salzarOP2mo ago
I guess I fixed that original issue but now I get a bunch of other crap
file:///Users/salvatorenoto/Developer/Apps/rent-tracker/node_modules/@prisma/client/runtime/client.mjs: Invalid source map. Only conformant source maps can be used to find the original code. Cause: TypeError [ERR_INVALID_ARG_TYPE]: The "payload" argument must be of type object. Received null
2025-05-01T03:33:00.606Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [Error [PrismaClientKnownRequestError]:
Invalid `db[model].findFirst()` invocation in
/Users/salvatorenoto/Developer/Apps/rent-tracker/.next/server/chunks/node_modules_better-auth_dist_4791b761._.js:3456:44

3453 if (!db[model]) {
3454 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$better$2d$auth$2f$dist$2f$shared$2f$better$2d$auth$2e$DdzSJf$2d$n$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["B"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
3455 }
→ 3456 return await db[model].findFirst(
self-signed certificate in certificate chain] {
code: 'SELF_SIGNED_CERT_IN_CHAIN',
meta: [Object],
clientVersion: '6.7.0'
}
GET /api/auth/organization/get-full-organization 401 in 1561ms
file:///Users/salvatorenoto/Developer/Apps/rent-tracker/node_modules/@prisma/client/runtime/client.mjs: Invalid source map. Only conformant source maps can be used to find the original code. Cause: TypeError [ERR_INVALID_ARG_TYPE]: The "payload" argument must be of type object. Received null
2025-05-01T03:33:00.735Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [Error [PrismaClientKnownRequestError]:
Invalid `db[model].findFirst()` invocation in
/Users/salvatorenoto/Developer/Apps/rent-tracker/.next/server/chunks/node_modules_better-auth_dist_4791b761._.js:3456:44

3453 if (!db[model]) {
3454 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$better$2d$auth$2f$dist$2f$shared$2f$better$2d$auth$2e$DdzSJf$2d$n$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["B"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
3455 }
→ 3456 return await db[model].findFirst(
self-signed certificate in certificate chain] {
code: 'SELF_SIGNED_CERT_IN_CHAIN',
meta: [Object],
clientVersion: '6.7.0'
}
file:///Users/salvatorenoto/Developer/Apps/rent-tracker/node_modules/@prisma/client/runtime/client.mjs: Invalid source map. Only conformant source maps can be used to find the original code. Cause: TypeError [ERR_INVALID_ARG_TYPE]: The "payload" argument must be of type object. Received null
2025-05-01T03:33:00.606Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [Error [PrismaClientKnownRequestError]:
Invalid `db[model].findFirst()` invocation in
/Users/salvatorenoto/Developer/Apps/rent-tracker/.next/server/chunks/node_modules_better-auth_dist_4791b761._.js:3456:44

3453 if (!db[model]) {
3454 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$better$2d$auth$2f$dist$2f$shared$2f$better$2d$auth$2e$DdzSJf$2d$n$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["B"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
3455 }
→ 3456 return await db[model].findFirst(
self-signed certificate in certificate chain] {
code: 'SELF_SIGNED_CERT_IN_CHAIN',
meta: [Object],
clientVersion: '6.7.0'
}
GET /api/auth/organization/get-full-organization 401 in 1561ms
file:///Users/salvatorenoto/Developer/Apps/rent-tracker/node_modules/@prisma/client/runtime/client.mjs: Invalid source map. Only conformant source maps can be used to find the original code. Cause: TypeError [ERR_INVALID_ARG_TYPE]: The "payload" argument must be of type object. Received null
2025-05-01T03:33:00.735Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [Error [PrismaClientKnownRequestError]:
Invalid `db[model].findFirst()` invocation in
/Users/salvatorenoto/Developer/Apps/rent-tracker/.next/server/chunks/node_modules_better-auth_dist_4791b761._.js:3456:44

3453 if (!db[model]) {
3454 throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$better$2d$auth$2f$dist$2f$shared$2f$better$2d$auth$2e$DdzSJf$2d$n$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["B"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
3455 }
→ 3456 return await db[model].findFirst(
self-signed certificate in certificate chain] {
code: 'SELF_SIGNED_CERT_IN_CHAIN',
meta: [Object],
clientVersion: '6.7.0'
}
I just moved back to the normal rust engine and everything is fine, seems like an issue with either that or the pgAdapter
Nurul
Nurul2mo ago
Hmm, that's strange. Is your project open source? I would like to reproduce this error to investigate
salzar
salzarOP4w ago
Hi, currently, I flipped back, and I'm unable to open the source of the project at the moment. But I will definitley keep tabs on this and share anything I discover.
Nurul
Nurul2w ago
Totally understand

Did you find this page helpful?