Bundler issues
Source URL: https://docs.prisma.io/docs/orm/more/troubleshooting/bundler-issues
Bundler issues
Section titled “Bundler issues”Solve ENOENT package error with vercel/pkg and other bundlers
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.