© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
7 replies
Clifton

Edge Functions - Event Loop Error

This may be related to today's AWS outage, but I'm consistently seeing two issues when using the dashboard to edit edge functions:

1️⃣ Adding new files fails - if I add a new file and
Deploy updates
Deploy updates
, a success message appears and the new file disappears.

2️⃣ All calls to my edge functions produce this error:

event loop error: Error: Cannot find module 'tslib'
Require stack:
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/index.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/SupabaseClient.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/index.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/index.js
    at Function.Module._resolveFilename (node:module:619:15)
    at Function.Module._load (node:module:497:27)
    at Module.require (node:module:681:19)
    at require (node:module:818:16)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js:4:17)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js:132:4)
    at Module._compile (node:module:745:34)
    at loadMaybeCjs (node:module:770:10)
    at Object.Module._extensions..js (node:module:755:12)
    at Module.load (node:module:662:32)
event loop error: Error: Cannot find module 'tslib'
Require stack:
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/index.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/SupabaseClient.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/index.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/index.js
    at Function.Module._resolveFilename (node:module:619:15)
    at Function.Module._load (node:module:497:27)
    at Module.require (node:module:681:19)
    at require (node:module:818:16)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js:4:17)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js:132:4)
    at Module._compile (node:module:745:34)
    at loadMaybeCjs (node:module:770:10)
    at Object.Module._extensions..js (node:module:755:12)
    at Module.load (node:module:662:32)
Screenshot_2025-10-20_at_17.23.13.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,729Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Edge functions error
SupabaseSSupabase / help-and-questions
3y ago
Edge functions supabase error
SupabaseSSupabase / help-and-questions
5mo ago
Edge Functions
SupabaseSSupabase / help-and-questions
4mo ago
Edge Functions
SupabaseSSupabase / help-and-questions
13mo ago