Simire
PPrisma
•Created by kumard3 on 5/8/2025 in #help-and-questions
prisma 6.7.0 not working in vercel

32 replies
PPrisma
•Created by kumard3 on 5/8/2025 in #help-and-questions
prisma 6.7.0 not working in vercel
i tried the approach and my app is working well on netlify after days of finding solution
32 replies
PPrisma
•Created by kumard3 on 5/8/2025 in #help-and-questions
prisma 6.7.0 not working in vercel
Generate the Prisma Client inside node_modules
In your schema.prisma, set the output path for the client to a directory inside node_modules, for example:
generator client {
provider = "prisma-client-js"
output = "../node_modules/@my-app/prisma-client"
}
Then, import your client like this:
import { PrismaClient } from '@my-app/prisma-client';
This approach is recommended in several discussions and has resolved the exports is not defined error for others using SvelteKit, Vite, and similar tools Prisma Sveltekit Generated Client -> exports is not defined, Multiple Connections / Databases / Datasources.
32 replies
PPrisma
•Created by kumard3 on 5/8/2025 in #help-and-questions
prisma 6.7.0 not working in vercel
try this approach
32 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
i tried it and it word for me. my app is running well now on netlify
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
Generate the Prisma Client inside node_modules
In your schema.prisma, set the output path for the client to a directory inside node_modules, for example:
generator client {
provider = "prisma-client-js"
output = "../node_modules/@my-app/prisma-client"
}
Then, import your client like this:
import { PrismaClient } from '@my-app/prisma-client';
This approach is recommended in several discussions and has resolved the exports is not defined error for others using SvelteKit, Vite, and similar tools Prisma Sveltekit Generated Client -> exports is not defined, Multiple Connections / Databases / Datasources.
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
prisma doc AI
20 replies
PPrisma
•Created by kumard3 on 5/8/2025 in #help-and-questions
prisma 6.7.0 not working in vercel
don't forget to add this to your package.json "postinstall": "npx prisma generate --no-engine"
32 replies
PPrisma
•Created by kumard3 on 5/8/2025 in #help-and-questions
prisma 6.7.0 not working in vercel
try this it worked for me. generate prisma client like ../node_modules/@your-app-name/prisma-client AND import { PrismaClient } from @your-app-name/prisma-client'
32 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
pls note ../node_modules/"@your-app-name"/prisma-client
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
import { PrismaClient } from '@servixhub/prisma-client';
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
generator client {
provider = "prisma-client-js"
output = "../node_modules/@servixhub/prisma-client"
//"../app/generated/prisma"
previewFeatures = ["driverAdapters", "queryCompiler"]
moduleFormat = "esm"
binaryTargets = ["native", "rhel-openssl-3.0.x"]
}
and imported like
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
i was able to sort the issue myself.
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
serverless
20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production

20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production

20 replies
PPrisma
•Created by Simire on 5/6/2025 in #help-and-questions
prisma 6.7.0 not working in production
ERROR Uncaught Exception {"errorType":"Runtime.UserCodeSyntaxError","errorMessage":"SyntaxError: Identifier 'dirname' has already been declared","stack":["Runtime.UserCodeSyntaxError: SyntaxError: Identifier 'dirname' has already been declared"," at _loadUserApp (file:///var/runtime/index.mjs:1084:17)"," at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)"," at async start (file:///var/runtime/index.mjs:1282:23)"," at async file:///var/runtime/index.mjs:1288:1"]}
20 replies