Open dhiaayachi opened 2 months ago
It's great that you're exploring the possibility of running Temporal TypeScript libraries with Bun! While Bun is a promising JavaScript runtime, its compatibility with TypeScript libraries built for Node.js can be a bit tricky.
Here's a breakdown of your issue and potential solutions:
Understanding the Problem
The Rust crash you're experiencing likely stems from Bun's reliance on its own native implementation of JavaScript core features. These features are often implemented differently from how they are in Node.js, potentially leading to unexpected behavior or crashes when using libraries built for Node.js.
Potential Solutions and Considerations
Important Considerations
Let me know if you have any further questions! Happy to help you navigate the world of Temporal and Bun!
Thanks for reporting this issue. I'm unable to find a solution in the provided Temporal Documentation. To better assist you, I'll need some more information:
Please provide the requested information to help us find a solution.
Thank you for reporting this!
It seems like you are experiencing an issue with running Temporal Typescript libraries on Bun. You've created a Bun issue here: https://github.com/oven-sh/bun/issues/12552.
Could you please provide more context on the specific Temporal Typescript libraries you are using and the Bun version you are on? This will help me better understand the problem and potentially suggest a workaround or solution.
For example, could you share the relevant portions of your code, specifically how you are using the Temporal Typescript SDK in your Bun project?
Thanks for reporting the issue! I am unable to provide you with a solution based on the documentation you provided. The documentation does not mention Bun or any issues related to it. To be able to assist you better, could you provide more information on how you have set up your Bun project and what modifications you have tried to increase compatibility?
Thanks for reporting this issue. It appears that you are encountering a Rust crash while running Temporal Typescript libraries on Bun. It looks like this might be a bug in Bun, but based on our documentation, there is no slight modification to the Typescript libraries that can be made to increase compatibility with the Bun runtime. Let us know if you have any further questions.
Thanks for reporting this! It seems like you're encountering a compatibility issue between the Temporal Typescript SDK and Bun. Unfortunately, there's no specific documentation or known workarounds for using the Temporal Typescript SDK with Bun at this time.
Given that you've already opened an issue on the Bun repository, it's likely a Bun bug. The best way to resolve this issue may be to collaborate with the Bun maintainers.
You could try these suggestions in the meantime:
Let me know if you have any other questions.
I created the following issue over at Bun: https://github.com/oven-sh/bun/issues/12552
I wanted to see if anyone else in the Temporal community has had success running Temporal Typescript libraries on Bun? I'm getting a Rust crash and have outlined the error in the above mentioned issue. I figure this may be a Bun bug, but maybe there's a slight modification that can be made to the typescript libraries that increase compatibility with the Bun runtime?