Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

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 .md to its URL.

Solve ENOENT package error with vercel/pkg and other bundlers

Location: ORM > v6 > More > Troubleshooting > Bundler issues

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 ENOENT

Add your Prisma query engine binary path to the pkg/assets section of your package.json file:

JSON
{
  "pkg": {
    "assets": ["node_modules/.prisma/client/*.node"]
  }
}

See this Github issue for further discussion.

  • 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 JavaScript
  • Many-to-many relations: Learn how to model, query, and convert many-to-many relations with Prisma ORM
  • Next.js: Best practices and troubleshooting for using Prisma ORM with Next.js applications.
  • Nuxt: Learn how to integrate Prisma ORM with your Nuxt application.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu