404 Not Found errors for build assets after building TanStack Start application
We have a TanStack Start + Router app - I am trying to upgrade from 1.97.3 to the latest versions of TanStack (1.115.2). We're also using Bun. Out setup was previously working without issues. I've upgraded the packages and can run our app locally and it works. If I build the app with
bun run build
however, I get a blank page and all of the asset requests 404 in the console. The assets do exist, if I manually inspect the build folder. Not sure what to do to resolve this or what the underlying issue is.
1 Reply
modern-tealOP•5mo ago
I discovered this happens since we are building with the bun preset.
If I default to the node preset this doesn't happen.
I figured out this was an issue with our Bun install. Deleting our Bun lockfile and regenerating it resolved the issue.