Cloudflare DevelopersCD
Cloudflare Developers9mo ago
2 replies
Balls

Worker dependencies failed as soon as Bun detected?

I used the React Router template and deployed it successfully on the web UI, but when I installed the packages locally, made some changes that shouldn't affect anything and upgraded packages, the deployment now fails "while installing dependencies" and detects Bun 1.1.33 "from the environment", even though I initially never specified any Bun-related information in any files but I did have a lock file that I tried removing, and even though I have specified packageManager as bun@1.2.10 and installed devDependencies of the same version of bun and Node 23.11.0 with BUN_VERSION as the same version both in my wrangler script and in the web UI.

What's going on and what am I doing wrong?

2025-04-23T09:14:00.723Z    Initializing build environment...
2025-04-23T09:14:07.858Z    Success: Finished initializing build environment
2025-04-23T09:14:07.989Z    Cloning repository...
2025-04-23T09:14:08.966Z    Detected the following tools from environment: npm@10.8.3, bun@1.1.33, nodejs@22.9.0
2025-04-23T09:14:08.969Z    Failed: error occurred while installing tools or dependencies
Was this page helpful?