Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’4y agoβ€’
6 replies
leon.vdb

GoTrue not supported in Edge Runtime?

Hey there!

I'm facing an issue that has similar symptoms as https://github.com/supabase/supabase-js/issues/461.
During compilation I get warnings and the app then fails during runtime, apparently due to a Node.js API used at
node_modules/@supabase/gotrue-js/dist/module/lib/helpers.js
node_modules/@supabase/gotrue-js/dist/module/lib/helpers.js



Here is the full log:

warn  - Compiled with warnings
../../node_modules/@supabase/gotrue-js/dist/module/lib/helpers.js
A Node.js API is used (Buffer at line: 90) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Import trace for requested module:
../../node_modules/@supabase/gotrue-js/dist/module/lib/helpers.js
../../node_modules/@supabase/gotrue-js/dist/module/GoTrueAdminApi.js
../../node_modules/@supabase/gotrue-js/dist/module/index.js
../../node_modules/@supabase/supabase-js/dist/module/index.js
../../node_modules/@supabase/auth-helpers-shared/dist/index.mjs
../../node_modules/@supabase/auth-helpers-nextjs/dist/index.js
../../node_modules/@supabase/auth-helpers-shared/dist/index.mjs
A Node.js API is used (Buffer at line: 215) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Import trace for requested module:
../../node_modules/@supabase/auth-helpers-shared/dist/index.mjs
../../node_modules/@supabase/auth-helpers-nextjs/dist/index.js
warn  - Compiled with warnings
../../node_modules/@supabase/gotrue-js/dist/module/lib/helpers.js
A Node.js API is used (Buffer at line: 90) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Import trace for requested module:
../../node_modules/@supabase/gotrue-js/dist/module/lib/helpers.js
../../node_modules/@supabase/gotrue-js/dist/module/GoTrueAdminApi.js
../../node_modules/@supabase/gotrue-js/dist/module/index.js
../../node_modules/@supabase/supabase-js/dist/module/index.js
../../node_modules/@supabase/auth-helpers-shared/dist/index.mjs
../../node_modules/@supabase/auth-helpers-nextjs/dist/index.js
../../node_modules/@supabase/auth-helpers-shared/dist/index.mjs
A Node.js API is used (Buffer at line: 215) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Import trace for requested module:
../../node_modules/@supabase/auth-helpers-shared/dist/index.mjs
../../node_modules/@supabase/auth-helpers-nextjs/dist/index.js



Relevant package versions:

 "@supabase/auth-helpers-nextjs": "^0.5.2", "@supabase/auth-helpers-react": "^0.3.1","@supabase/supabase-js": "2.1.1","next": "13.0.6"
 "@supabase/auth-helpers-nextjs": "^0.5.2", "@supabase/auth-helpers-react": "^0.3.1","@supabase/supabase-js": "2.1.1","next": "13.0.6"


Anyone faced similar issues? Help and ideas are much appreciated πŸ™ πŸ™‚
GitHub
Issues Β· supabase/supabase-js
An isomorphic Javascript client for Supabase. Contribute to supabase/supabase-js development by creating an account on GitHub.
Issues Β· supabase/supabase-js
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

Edge Runtime Extended Functions
SupabaseSSupabase / help-and-questions
3y ago
Migrate from Legacy Edge Functions runtime to new Edge Functions Runtime
SupabaseSSupabase / help-and-questions
3mo ago
Docker build error -> edge-runtime
SupabaseSSupabase / help-and-questions
14mo ago
Are NodeJS edge functions supported yet?
SupabaseSSupabase / help-and-questions
6mo ago