SupabaseS
Supabase3y ago
Budi

Supabase client not building or passing correctly in build

I'm experiencing an issue with the new Supabase SSR auth package.

I built a recipe tracking app, which works well locally but not when built for production locally (using pnpm run build) or on Vercel (using vercel --prod). I'm using Supabase authentication, databasing and storage, using email & pw login.

Github Repo.

When I submit a new recipe using the NewRecipeModal.svelte, the handleSubmit function is called, which calls the addRecipe function with the Supabase client and a Svelte store as arguments. I get this error:

Uncaught (in promise) TypeError: n.from is not a function
    at be (AlertModal.24501be2.js:1:2205)
    at HTMLFormElement.c (11.e2a40dda.js:6:10652)
    at HTMLFormElement.<anonymous> (scheduler.24ac21d3.js:1:3787)


Here's a video walkthrough of my issue.

I created a help request on the Supabase Github but thought I'd crosspost here to see if anybody could help me out. Thank you!
GitHub
Contribute to brucey0x/recipe_tracker development by creating an account on GitHub.
Jumpshare
Shared with Jumpshare
GitHub
I'm experiencing an issue with the new Supabase SSR auth package. I built a recipe tracking app, which works well locally but not when built for production locally (using pnpm run build) or on ...
Was this page helpful?