Ethan's dev spot

EDS

Ethan's dev spot

Join the community to ask questions about Ethan's dev spot and get answers from other members.

Join
MMickey3/7/2024

Error when trying to setup Drizzle ORM

Hello people! I'm trying to following the original BETH Stack tutorial in order to get the basics, but I'm aware a lot changed in the tech used since then, so I'm trying to adapt my code as I go and encounter errors. However, I'm unable to solve an error when running bunx drizzle-kit push:sqlite....
CCharlie2/21/2024

Caching in BETH Stack

How does caching work in the BETH stack? I noticed a beth-cache.sqlite and I'm wondering what it does exactly. Edit: I now see it's for persistent caching. Pretty cool, I'm just wondering... what would be some use cases of this as opposed to using Turso?...
UUberAffe2/19/2024

Issues setting up on windows

Environment setup always wrecks me. I cannot get Turso to install, I always get a wsl error:
<3>WSL (8) ERROR: CreateProcessParseCommon:754: getpwuid(0) failed 2 Processing fstab with mount -a failed....
SSitrius2/10/2024

Using React components ?

Hello, I was wondering if it was possible to use react components in the BETH stack? For example I would like to use the Autocomplete from "material-ui", do I have to make it from scratch? As BETH stack is using JSX but not React, it seems I have this kind of errors: Type 'Element' is not assignable to type 'ReactNode' Thanks in advance...
Solution:
it is not possible to use react components unfourtunately
LLillum12/1/2023

BETH stack tutorial b2b app - session is null for auth when trying to log in

I'm having an issue where the session is null when trying to sign in with google auth. I'm following along with the video but can't find the problem. here's my github repo https://github.com/WAHoltz/beth-b2b-saas
SSamK11/9/2023

BETH stack tutorial - HRANA_WEBSOCKET_ERROR

I'm going through the BETH stack tutorial in a Linux docker. So far everything's been going well, but I ran into a problem when trying to execute bunx drizzle-kit push:sqlite Does anyone have any suggestions of why this might be happening / how to fix it? ```bash root@b3e1215faf77:/workspaces/TodoListBETH/beth-stack# bunx drizzle-kit push:sqlite...
SSitrius10/26/2023

VSCode extension list BETH

Hello, as a Python developer I am mostly a noob with things like typescript, npm ... For Python I have tons of extensions for things such as auto completion, linting and formatting ... I heard in the first BETH video of Ethan some VSC extensions that have been cited. Is there a place I can find a full list of extensions that could work together for the BETH stack? Currently my VSC is incorrectly underlying a bit everything. I might not be the only one interested in such a list....
Solution:
There are no official ones, just like the standard web dev stuff: prettier, eslint, etc
RRich10/25/2023

Multiple Cron Jobs

```ts export const jobs = (app: Elysia) => app .use(cron({ name: 'job_1', pattern: '*/10 * * * * *',...
Solution:
For those seeing this in the future, it is a bug, see https://github.com/elysiajs/elysia-cron/pull/4 for potential fix
SSitrius10/23/2023

bun db:push -> server response: 404

Hello, I'm trying to learn the BETH stack but at the beginning when doing "bun db:push" I get a 404 error. I'm really a noob with those technologies, if someone could indicate me if I did an obvious mistake, it would be very helpful! `bun db:push $ bunx drizzle-kit push:sqlite...
Solution:
Thank you very much, on this server I read the "Websocket 404" issue and it seems to be a bun issue that isn't fixed yet. I decided to run "sudo apt install npm" and it seems to fix the problem!! I'll now continue to enjoy your amazing tutorial....
RRich10/20/2023

Form submission issue

Hey, trying to figure out some htmx/form problem. `` <form hx-post={/tierlists/${tierlistId}/grades`}...
Solution:
are you sure htmx (from script tag) is loaded on your page? it would be responible for stopping the default behavior...
Jjgoerner10/18/2023

[JSX] Type  Promise<string>  is not assignable to type  AttributeValue | undefined

Hey there 👋 I was trying to follow along the awesome intro to the BETH stack https://www.youtube.com/watch?v=cpzowDDJj24 So far I've setup...
No description
TTrevor10/8/2023

BETH stack tutorial non-blocking: `pushToTenantDb` returns exit code of 1

Per the title this bit of code is causing a small problem: ``` onExit(subprocess, exitCode, signalCode, error) { console.log({ exitCode, error }, "hi from tenant index");...
CMCount Meowt10/7/2023

3D animations on scroll with htmx / beth

has anyone tried it ? does it work like normal ?
MMartimatix10/3/2023

What do you use for background jobs?

Rails has sidekiq, Elixir/Phoenix has Oban -- any suggestions for the BETH stack?
AAdicco9/30/2023

Has anyone managed to add auto refresh (hmr) on this stack?

I guess hot module reloading doesn't really make sense in this stack per se, but just a way to refresh the browser automatically when the server restarts after a change.
Solution:
Should automatically run in dev mode with create Beth app
TTrevor9/29/2023

BETH stack tutorial blocked "Sync is not supported in databases opened in file mode."

After creating a Turso db and adding the needed .env variables running bun dev results in the follwing error. ``` $ concurrently "bun run --hot src/main.ts" "bun run uno:dev" "bun run liveReload" [1] $ bunx --bun unocss --watch...
TTrevor9/28/2023

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....
No description
NCNathan (Charybdiss)9/28/2023

(mental) cookie is crumbling

Hey all 👋 I'm following along to the recent YT video and am having some cookie issues when authenticating with Google 🍪 I'm getting into the callback section of the controller fine and then returning unauthorised as my state and state_cookie don't match....
WWezter9/28/2023

Recommendations for React Native alternative?

Hi! 😄 I am looking to build a mobile app for both android and iOS and I'm looking to use some similar tools like in the BETH stack. Do you have any suggestions for what could be used to achieve this, or do you know any starters that does something like this already?...
Nnkr9/28/2023

htmx and Elysia Websocket message not rendering

Currently im trying to learn htmx with Elysia by creating a chat app using the websocket from Elysia. This is my html code: <body> <div> <form hx-ext="ws" ws-connect="/chatroom" hx-target="#chat_room" ws-send>...
Next