Bundler issues (Prisma ORM v6) (/docs/orm/v6/more/troubleshooting/bundler-issues)
For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending
.mdto its URL.
Solve ENOENT package error with vercel/pkg and other bundlers
Location: ORM > v6 > More > Troubleshooting > Bundler issues
Problem with vercel/pkg
Section titled “Problem with vercel/pkg”If you use vercel/pkg to package your Node.js project, you might encounter an ENOENT error like:
spawn /snapshot/enoent-problem/node_modules/.prisma/client/query-engine-debian-openssl-1.1.x ENOENTSolution
Section titled “Solution”Add your Prisma query engine binary path to the pkg/assets section of your package.json file:
{
"pkg": {
"assets": ["node_modules/.prisma/client/*.node"]
}
}See this Github issue for further discussion.
Related pages
Section titled “Related pages”Check constraints: Learn how to configure CHECK constraints for data validation with Prisma ORM and PostgreSQL.GraphQL autocompletion: Get autocompletion for Prisma Client queries in GraphQL resolvers with plain JavaScriptMany-to-many relations: Learn how to model, query, and convert many-to-many relations with Prisma ORMNext.js: Best practices and troubleshooting for using Prisma ORM with Next.js applications.Nuxt: Learn how to integrate Prisma ORM with your Nuxt application.