© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
jbergius

TypeError supabaseServerClient is not a function

Hey!

I'm upgrading my supabase-auth-helpers from @supabase/supabase-auth-helpers to @supabase/auth-helpers-nextjs and I've follwed the migration guide.

The problem I'm having is my getServerSideProps function that looks like this:
const { data, error } = await supabaseServerClient(ctx)
      .from('vendor_connections')
      .select('*');
const { data, error } = await supabaseServerClient(ctx)
      .from('vendor_connections')
      .select('*');


But I get a 404 and Page not found with the following error message:
TypeError: supabaseServerClient is not a function

Has someone encountered the same problem?
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

TypeError: safeGetSession is not a function (SvelteKit)
SupabaseSSupabase / help-and-questions
13mo ago
TypeError: Deno.readFile is not a function
SupabaseSSupabase / help-and-questions
3y ago
TypeError client.auth.getSessionFromUrl is not a function
SupabaseSSupabase / help-and-questions
4y ago
TypeError supabaseClient.auth.session is not a function
SupabaseSSupabase / help-and-questions
4y ago