Skip to content

Deployment fails on Vercel using Bun #627

@akgec-saurabh

Description

@akgec-saurabh

🐛 Bug Report: Deployment fails on Vercel with Bun + Prisma postinstall error

Description

While trying to deploy the full-stack template generated using better-t-stack on Vercel, the deployment fails during the bun install step with a Prisma postinstall error.


🧾 Error Log

Vercel CLI 48.2.9

Detected Turbo. Adjusting default settings...
Running "install" command: bun install...
bun install v1.2.23 (cf136713)
/usr/bin/bash: line 1: @orpc/client@orpc/openapi@o: No such file or directory
error: postinstall script from "@prisma/client" exited with 127
Error: Command "bun install" exited with 127

bun create better-t-stack@latest my-better-t-app \
  --frontend next \
  --backend self \
  --runtime none \
  --api orpc \
  --auth better-auth \
  --payments none \
  --database postgres \
  --orm prisma \
  --db-setup neon \
  --package-manager bun \
  --git \
  --web-deploy none \
  --server-deploy none \
  --no-install \
  --addons turborepo \
  --examples todo


Push the generated project to GitHub.

Deploy the repository to Vercel using default build settings.

Observe the installation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions