Bun error
dimon1936
PROOP

2 months ago

I’m running several Bun Functions (using the official image ghcr.io/railwayapp/function-bun:1.3.0).

Since a few days ago, my functions started crashing with the following error:

error: Cannot find package 'tslib' from '/app/node_modules/@supabase/functions-js/dist/main/FunctionsClient.js'

This never happened before — same code and package.json were working fine previously.

It looks like the new Bun runtime no longer includes tslib resolution for dependencies like @supabase/functions-js (used by @supabase/supabase-js). Since Railway Functions are sandboxed, I can’t patch node_modules or add symlinks manually.

Could you please confirm if something changed in the Function build/runtime environment for Bun, or if there’s a new recommended way to include tslib globally?

Thank you

1 Replies

dimon1936
PROOP

2 months ago

Screenshot

Attachments


Loading...