Bun

Hey, I am running a service on Bun on Railway. The deployment is crashing after a successful build. I am using the Node.js nixpacks builder (v1.17.0), Node.js 18.17.1. Head of the logs:
/app/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: Could not locate the bindings file. Tried:
→ /app/node_modules/@ponder/core/node_modules/better-sqlite3/build/better_sqlite3.node
→ /app/node_modules/@ponder/core/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
[...]
/app/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: Could not locate the bindings file. Tried:
→ /app/node_modules/@ponder/core/node_modules/better-sqlite3/build/better_sqlite3.node
→ /app/node_modules/@ponder/core/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
[...]
Everything works locally with the same environment. I did have to add "better-sqlite3" to trustedDependencies due to Bun security (https://bun.sh/guides/install/trusted)
6 Replies
Percy
Percy13mo ago
Project ID: 255d4a00-fe1e-458c-b03f-c71ed3dad82d
Brody
Brody13mo ago
any reason you are using nixpacks 1.17.0?
bc 🐧🪺
bc 🐧🪺OP13mo ago
Project ID: 255d4a00-fe1e-458c-b03f-c71ed3dad82d No reason, that's just what Railway defaulted to Ah it's an outdated deployment
Brody
Brody13mo ago
railway will currently use 1.19.0?
bc 🐧🪺
bc 🐧🪺OP13mo ago
Let me try on new version Yeah just a glitch one sec Thank you for bringing that to my attention Lmao, rookie mistake, everything is working on v1.19.0. Thanks Brody 😂
Brody
Brody13mo ago
no problem!
Want results from more Discord servers?
Add your server