BETH stack tutorial blocked with esbuild and rendering

Super excited to work through this tutorial but I can't get it scaffolded. Problem 1: bun seems to be installing the wrong version of esbuild for my chip. I'm on an M1 Max and get this error when I try to run bun db:push
You installed esbuild for another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to
install a platform-specific binary executable.

Specifically the "@esbuild/darwin-arm64" package is present but this platform
needs the "@esbuild/darwin-x64" package instead.
You installed esbuild for another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to
install a platform-specific binary executable.

Specifically the "@esbuild/darwin-arm64" package is present but this platform
needs the "@esbuild/darwin-x64" package instead.
It goes on from there. I can kinda get around this my running npm i which seems to install both of them. bun db:push works once I do that but then I have two .lock files and that feels not ideal. I'm a little worried that will cause build issues down the line or snags in deployment or something. The bigger problem though is the app simply doesn't render. After running bun dev the initial GET request to localhost:3000 seems to return a string of the code itself somehow. Like literally the code from main.ts (see screenshot). No idea how to work past this. Any help would be much appreciated, the tutorial looks awesome and I'm excited to show off a working version to my coworkers just gotta work some of these kinks out.
No description
7 Replies
whatplan
whatplan12mo ago
your bun is out of date for sure bun upgrade the esbuilt thing im less sure about
Trevor
Trevor12mo ago
hm i just did bun upgrade before i started
whatplan
whatplan12mo ago
Bun
Bun 1.0
Bun is stable and ready for production.
whatplan
whatplan12mo ago
the source code in browser was fixed in 1.0
Trevor
Trevor12mo ago
you are totally right i ran the upgrade but it failed, i'm on like 0.6.12 thanks for the reply, and keep up the great work you really quickly became one of my favorite programming youtube channels! In case anyone has the same problem, just going to add here that updating to Bun 1.0.3 did not solve the esbuild issue.
whatplan
whatplan12mo ago
im guessing this is a bun package manger issue unfourtunately not much I can help with
Trevor
Trevor12mo ago
yeah that's my guess too, thanks for taking the time to look in any case
Want results from more Discord servers?
Add your server