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 [email protected] 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: [email protected], [email protected], [email protected]
2025-04-23T09:14:08.969Z Failed: error occurred while installing tools or dependencies
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: [email protected], [email protected], [email protected]
2025-04-23T09:14:08.969Z Failed: error occurred while installing tools or dependencies
2 Replies
RiskyMH
RiskyMHthis hour
interesting... the BUN_VERSION env var works for me
No description
Balls
BallsOPthis hour
I think the error was elsewhere entirely; not sure where but I reset the project because wrestling with this was impossible with no further information provided, but what I found out was that it was not even running or searching for any wrangler.toml or json so setting those variables was pointless; it was failing before that point.

Did you find this page helpful?