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:
Any idea how I can fix this?
Thanks!
⨯ ./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
5 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!I guess I fixed that original issue but now I get a bunch of other crap
I just moved back to the normal rust engine and everything is fine, seems like an issue with either that or the pgAdapter
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'
}
Hmm, that's strange.
Is your project open source? I would like to reproduce this error to investigate
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.
Totally understand