Skip to content
Back

Issue running a bun function

  • 0
  • 2
  • Cloud
Marios
25 Apr, 2026, 05:59

I am getting this error message when trying to execute my bun function:

TypeScript
Failed to load module: BuildMessage: EISDIR reading "/root/.bun/install/cache/bignumber.js@9.3.1@@@1agent@1.7.2@@@1/bignumber.js"

I am using Bun 1.3 runtime, deployed to cloud, with no other significant issue like a failed build or similar. Any ideas what could be going wrong?

TL;DR
The issue with running the bun function is likely due to the bignumber dependency used in the appwrite SDK. Solution: Update to any version above 17.0.0 of node-appwrite to resolve the problem.
25 Apr, 2026, 11:53

is the function also using appwrite sdk? issue might be bignumber dependency used in it πŸ€”

25 Apr, 2026, 11:53

just for narrowing down the issue can u confirm that and try removing the sdk?

25 Apr, 2026, 12:12

Yes it is! it's meant to set some boilerplate when users are being registered. I've solved it by quickly migrating the function to golang.

25 Apr, 2026, 12:12

Happy to do that but my free plan doesn't allow for more functions πŸ™

25 Apr, 2026, 12:13

no worries i can try reproducing when i start on monday

25 Apr, 2026, 19:34

thanks <@743532656767270934> , appreciate it. let me know I can assist πŸ™‚

26 Apr, 2026, 11:25

<@502858950501203968> narrowed it down, you are most likely using an old version of node-appwrite

1
26 Apr, 2026, 11:26

try updating to any version above 17.0.0

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more