Closed erikreppel closed 1 year ago
Hey! It's great to see connect usage with newer runtimes like bun. But unfortunately I don't think there's anything we can do to make this work, this has to be resolved in bun. The bun issue you linked seems to the one to follow.
@erikreppel please file this issue in Bun’s repository. If it works in Node but doesn’t work in Bun, it’s a bug in Bun.
I realize this issue is closed, but it wasn't clear if it was resolved or not.
I was on my way to try connectrpc
with elysia
and hono
, and stumbled across this issue, so figured it was worth trying first.
I tested using fastify@4.28.1
on bun@1.1.21
with connect@1.4.0
appears to work fine now.
/package.json
/buf.gen.yaml
/proto/eliza.proto
/src/server.ts
Describe the bug connect-node currently does work with
bun
likely due to an outdated dependency (see this issue: https://github.com/oven-sh/bun/issues/5122)Would be great to be able to use
connect
withbun
!To Reproduce Follow the node getting started (https://connectrpc.com/docs/node/getting-started/#start-a-server) using
bun
instead ofnode
If you encountered an error message, please copy and paste it verbatim. If the bug is specific to an RPC or payload, please provide a reduced example.
Environment (please complete the following information):
v18.18.0
(bun version1.0.6
)If your problem is specific to bundling, please also provide the following information: