Open ftognetto opened 7 months ago
Is it possible to share a minimal reproduction in code?
HI @Electroid yes ofc.
I create a repo here https://github.com/ftognetto/-oven-sh-bun-issues-9367
To use this repo you should have a gcp project with pubsub enabled. There are two env variables to setup
I created some scripts in package.json that already load those env so you have everything in one place
Notes:
Hi @Electroid forgive the insistence are there any update on this? We are currently waiting for migrating an old lerna monorepo to bun workspaces and we have scheduled work on it. If you need I can send you in private a service account so you can test the repo I sent without additional operation from your side. Let me know, thank you
This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment.
What version of Bun is running?
1.0.30+1424a196f
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
In my project I'm currently using @google-cloud/pubsub and @google-cloud/logging When I run the project with bun run index.ts I have no problem. When I build the project (bun build index.ts --target node (or bun, is the same) and run the index.js output I get
The same error when I try to send a message with @google-cloud/pubsub
What is the expected behavior?
Something I don't understand is happening during the transpiling done by Bun.build. I expect to make @google-cloud libraries work after Bun.build
What do you see instead?
No response
Additional information
I'm currently using bun workspace.
The tsconfig I'm using is (taken from bun best practices)