Vercel deployment errors as soon as Prisma enters the show

Hi, I used a new create-t3-app with prisma and the deploy to vercel fails due to: (I also tried a new create-t3-app without prisma -> all fine, after bun install prisma, Vercel fails with the same error again) [10:57:41.072] Installing dependencies... [10:57:41.131] bun install v1.0.21 (837cbd60) [10:57:41.139] Resolving dependencies [10:57:41.775] Resolved, downloaded and extracted [2] [10:57:41.777] Saved lockfile [10:57:41.986] node:internal/modules/cjs/loader:1080 [10:57:41.986] throw err; [10:57:41.987] ^ [10:57:41.987] [10:57:41.987] Error: Cannot find module '/vercel/path0/scripts/postinstall.js' [10:57:41.988] at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) [10:57:41.988] at Module._load (node:internal/modules/cjs/loader:922:27) [10:57:41.988] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12) [10:57:41.988] at node:internal/main/run_main_module:23:47 { [10:57:41.988] code: 'MODULE_NOT_FOUND', [10:57:41.988] requireStack: [] [10:57:41.989] } [10:57:41.989] [10:57:41.989] Node.js v18.18.2 [10:57:41.989] [10:57:41.989] error: postinstall script from "@prisma/engines" exited with 1 [10:57:41.997] Error: Command "bun install" exited with 1 [10:57:42.340]
5 Replies
Leonidas
Leonidas11mo ago
Does vercel support bun? It seems like you are using it
Yiannis
Yiannis11mo ago
Can you build it and start it localy?
benekuehn
benekuehnOP11mo ago
Locally it all works fine
JLN
JLN11mo ago
No description
JLN
JLN11mo ago
Try this, there was some bun / vercel error. Cant find the github issue for it right now. This fixed it for me My error wasnt prisma related, so just a shot in the dark
Want results from more Discord servers?
Add your server