© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y 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
pnpm run build
) or on Vercel (using
vercel --prod
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)
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
GitHub - brucey0x/recipe_tracker
Contribute to brucey0x/recipe_tracker development by creating an account on GitHub.
GitHub - brucey0x/recipe_tracker
Jumpshare
Screen Recording 2023-12-11 at 5.05.28 PM.mp4
Shared with Jumpshare
Screen Recording 2023-12-11 at 5.05.28 PM.mp4
GitHub
Supabase client not being passed or compiled correctly in SvelteKit...
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 ...
Supabase client not being passed or compiled correctly in SvelteKit...
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

database.build not building Diagram
SupabaseSSupabase / help-and-questions
14mo ago
initialize supabase client once (cached) or multiple times?
SupabaseSSupabase / help-and-questions
4y ago
What's the recommended way of fetching or passing Supabase Auth state to Next client components now?
SupabaseSSupabase / help-and-questions
9mo ago
supabase client expose error
SupabaseSSupabase / help-and-questions
13mo ago