Bun runtime: "Requested module is not instantiated yet"

I am trying to get server functions to work with the new bun runtime. Running vercel dev locally works. When deploying and running on vercel, the function crashes and I can only see the following in the logs:

2025-10-29T10:58:57.242Z \[error\] TypeError: Requested module is not instantiated yet.
at link (native:1:11)
at link (native:1:11)
at link (native:1:11)
at link (native:1:11)
at linkAndEvaluateModule (native:1:11)
at requestImportModule (native:2)
at processTicksAndRejections (native:7:39)
Bun process exited with exit status: 1. The logs above can help with debugging the issue.
TypeError: Requested module is not instantiated yet.
at link (native:1:11)
at link (native:1:11)
at link (native:1:11)
at link (native:1:11)
at linkAndEvaluateModule (native:1:11)
at requestImportModule (native:2)
at processTicksAndRejections (native:7:39)
Bun process exited with exit status: 1. The logs above can help with debugging the issue.

Any clue on what’s happening and how I can debug this?

I have the same issue and don’t understand the reason. Locally everything works fine.