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?
Unfortunately I didn’t go further than this. Bun runtime on Vercel is still beta. I know there’s been updates recently and better docs so things might have improved.
We’re in contact with the Bun team to fix this issue, which appears to be a bug in the Bun runtime. If anyone has a minimal reproduction, it would help accelerate landing a fix
I’m seeing this again after introducing new code to the project. It’s quite annoying and I’m not able to tell which one broke it. @quiibz Does Bun team have an ETA on the fix? Is there a github issue created? Did they suggest any workaround on this? Thank you!
I encountered similar issue, by commenting out file by file, and library by library, I found my case was caused by uuid package. Once removed the package the deployment runs well.
Worth checking bun’s compatibilty list for node:* imports.
I’m experiencing the same issue with the uuid package (v4 and v7). I’m using uuid ^11.1.0 with Bun + Hono + TypeScript. The error only occurs at runtime when uuid is called in my middleware for generating request IDs, the build process completes successfully.
Wondering if there is any movement on this?
Tried all workaround mentioned above and elsewhere…
Can’t repro locally, even when serving the prod build output, so can’t really debug further.
Likely ripping out bun and back to node.
Hey everyone, especially the folks at Vercel — you say you support Bun, then you say you’re going to fix it, and now more than 3 months have gone by with nothing? My staging environment is broken because of this error, and I can’t deploy to production because it would break there too. Is there really no guidance at all on how to solve this? I’m using express + tRPC + bun