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
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](https://cdn.answeroverflow.com/1157103560895516803/image.png)
7 Replies
your bun is out of date for sure
bun upgrade
the esbuilt thing im less sure abouthm i just did bun upgrade before i started
the source code in browser was fixed in 1.0
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.
im guessing this is a bun package manger issue unfourtunately
not much I can help with
yeah that's my guess too, thanks for taking the time to look in any case